Class JsrClientEndpointImpl
java.lang.Object
org.eclipse.jetty.websocket.jsr356.client.JsrClientEndpointImpl
- All Implemented Interfaces:
EventDriverImpl
Event Driver for classes annotated with @
ClientEndpoint-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(Object websocket, WebSocketPolicy policy) Create the EventDriver based on this implementation.human readable string describing the rule that would support this EventDriver.private intgetMaxMessageSize(int defaultMaxMessageSize, long maxMessageSize) booleanTest for if this implementation can support the provided websocket.
-
Constructor Details
-
JsrClientEndpointImpl
public JsrClientEndpointImpl()
-
-
Method Details
-
create
public EventDriver create(Object websocket, WebSocketPolicy policy) throws javax.websocket.DeploymentException Description copied from interface:EventDriverImplCreate the EventDriver based on this implementation.- Specified by:
createin interfaceEventDriverImpl- Parameters:
websocket- the websocket to wrappolicy- the policy to use- Returns:
- the created EventDriver
- Throws:
javax.websocket.DeploymentException
-
describeRule
Description copied from interface:EventDriverImplhuman readable string describing the rule that would support this EventDriver.Used to help developer with possible object annotations, listeners, or base classes.
- Specified by:
describeRulein interfaceEventDriverImpl- Returns:
- the human readable description of this event driver rule(s).
-
getMaxMessageSize
private int getMaxMessageSize(int defaultMaxMessageSize, long maxMessageSize) -
supports
Description copied from interface:EventDriverImplTest for if this implementation can support the provided websocket.- Specified by:
supportsin interfaceEventDriverImpl- Parameters:
websocket- the possible websocket to test- Returns:
- true if implementation can support it, false if otherwise.
-