Class JsrClientEndpointImpl

java.lang.Object
org.eclipse.jetty.websocket.jsr356.client.JsrClientEndpointImpl
All Implemented Interfaces:
EventDriverImpl

public class JsrClientEndpointImpl extends Object implements EventDriverImpl
Event Driver for classes annotated with @ClientEndpoint
  • Constructor Details

    • JsrClientEndpointImpl

      public JsrClientEndpointImpl()
  • Method Details

    • create

      public EventDriver create(Object websocket, WebSocketPolicy policy) throws javax.websocket.DeploymentException
      Description copied from interface: EventDriverImpl
      Create the EventDriver based on this implementation.
      Specified by:
      create in interface EventDriverImpl
      Parameters:
      websocket - the websocket to wrap
      policy - the policy to use
      Returns:
      the created EventDriver
      Throws:
      javax.websocket.DeploymentException
    • describeRule

      public String describeRule()
      Description copied from interface: EventDriverImpl
      human readable string describing the rule that would support this EventDriver.

      Used to help developer with possible object annotations, listeners, or base classes.

      Specified by:
      describeRule in interface EventDriverImpl
      Returns:
      the human readable description of this event driver rule(s).
    • getMaxMessageSize

      private int getMaxMessageSize(int defaultMaxMessageSize, long maxMessageSize)
    • supports

      public boolean supports(Object websocket)
      Description copied from interface: EventDriverImpl
      Test for if this implementation can support the provided websocket.
      Specified by:
      supports in interface EventDriverImpl
      Parameters:
      websocket - the possible websocket to test
      Returns:
      true if implementation can support it, false if otherwise.