Class JavaxWebSocketClientContainer

    • Constructor Detail

      • JavaxWebSocketClientContainer

        public JavaxWebSocketClientContainer()
      • JavaxWebSocketClientContainer

        public JavaxWebSocketClientContainer​(HttpClient httpClient)
        Create a WebSocketContainer using the supplied HttpClient for environments where you want to configure SSL/TLS or Proxy behaviors.
        Parameters:
        httpClient - the HttpClient instance to use
      • JavaxWebSocketClientContainer

        public JavaxWebSocketClientContainer​(WebSocketComponents components)
    • Method Detail

      • setShutdownContainer

        public static void setShutdownContainer​(ContainerLifeCycle container)
      • getHttpClient

        protected HttpClient getHttpClient()
      • convertCause

        public static java.lang.Throwable convertCause​(java.lang.Throwable error)
      • connectToServer

        public javax.websocket.Session connectToServer​(java.lang.Class<? extends javax.websocket.Endpoint> endpointClass,
                                                       javax.websocket.ClientEndpointConfig providedConfig,
                                                       java.net.URI path)
                                                throws javax.websocket.DeploymentException,
                                                       java.io.IOException
        Specified by:
        connectToServer in interface javax.websocket.WebSocketContainer
        Throws:
        javax.websocket.DeploymentException
        java.io.IOException
      • connectToServer

        public javax.websocket.Session connectToServer​(java.lang.Class<?> annotatedEndpointClass,
                                                       java.net.URI path)
                                                throws javax.websocket.DeploymentException,
                                                       java.io.IOException
        Specified by:
        connectToServer in interface javax.websocket.WebSocketContainer
        Throws:
        javax.websocket.DeploymentException
        java.io.IOException
      • connectToServer

        public javax.websocket.Session connectToServer​(javax.websocket.Endpoint endpoint,
                                                       javax.websocket.ClientEndpointConfig providedConfig,
                                                       java.net.URI path)
                                                throws javax.websocket.DeploymentException,
                                                       java.io.IOException
        Specified by:
        connectToServer in interface javax.websocket.WebSocketContainer
        Throws:
        javax.websocket.DeploymentException
        java.io.IOException
      • connectToServer

        public javax.websocket.Session connectToServer​(java.lang.Object endpoint,
                                                       java.net.URI path)
                                                throws javax.websocket.DeploymentException,
                                                       java.io.IOException
        Specified by:
        connectToServer in interface javax.websocket.WebSocketContainer
        Throws:
        javax.websocket.DeploymentException
        java.io.IOException
      • doStart

        protected void doStart()
                        throws java.lang.Exception
        Description copied from class: ContainerLifeCycle
        Starts the managed lifecycle beans in the order they were added.
        Overrides:
        doStart in class ContainerLifeCycle
        Throws:
        AbstractLifeCycle.StopException - If thrown, the lifecycle will immediately be stopped.
        java.lang.Exception - If there was a problem starting. Will cause a transition to FAILED state
      • doStop

        protected void doStop()
                       throws java.lang.Exception
        Description copied from class: ContainerLifeCycle
        Stops the managed lifecycle beans in the reverse order they were added.
        Overrides:
        doStop in class ContainerLifeCycle
        Throws:
        java.lang.Exception - If there was a problem stopping. Will cause a transition to FAILED state
      • doClientStart

        protected void doClientStart()
      • doClientStop

        protected void doClientStop()