Class TyrusEndpointWrapper


  • public class TyrusEndpointWrapper
    extends java.lang.Object
    Wraps the registered application class.

    There is one TyrusEndpointWrapper for each application class, which handles all the methods.

    Author:
    Danny Coward, Stepan Kopriva, Martin Matula, Pavel Bucek
    • Method Detail

      • getEndpointPath

        public java.lang.String getEndpointPath()
        Server-side; Get Endpoint absolute path.
        Returns:
        endpoint absolute path.
      • createSessionForRemoteEndpoint

        public Session createSessionForRemoteEndpoint​(TyrusWebSocket socket,
                                                      java.lang.String subprotocol,
                                                      java.util.List<Extension> extensions,
                                                      DebugContext debugContext)
        Creates a Session based on the TyrusWebSocket, subprotocols and extensions.
        Parameters:
        socket - the other end of the connection.
        subprotocol - used.
        extensions - extensions used.
        debugContext - debug context.
        Returns:
        Session representing the connection.
      • getEndpointConfig

        public EndpointConfig getEndpointConfig()
        Get Endpoint configuration.
        Returns:
        configuration.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object