Class ServletAwareConfig


  • public class ServletAwareConfig
    extends javax.websocket.server.ServerEndpointConfig.Configurator
    The ServletAwareConfig configures WebSocketTransportEndpoints so that they get a ClientSessionRegistry set from the ServletContext.
    • Constructor Detail

      • ServletAwareConfig

        public ServletAwareConfig()
    • Method Detail

      • modifyHandshake

        public void modifyHandshake​(javax.websocket.server.ServerEndpointConfig config,
                                    javax.websocket.server.HandshakeRequest request,
                                    javax.websocket.HandshakeResponse response)
        Overrides:
        modifyHandshake in class javax.websocket.server.ServerEndpointConfig.Configurator
      • getEndpointInstance

        public <T> T getEndpointInstance​(Class<T> endpointClass)
                                  throws InstantiationException
        Overrides:
        getEndpointInstance in class javax.websocket.server.ServerEndpointConfig.Configurator
        Throws:
        InstantiationException