Class CoreClientUpgradeRequest

    • Field Detail

      • futureCoreSession

        protected final java.util.concurrent.CompletableFuture<CoreSession> futureCoreSession
    • Constructor Detail

      • CoreClientUpgradeRequest

        public CoreClientUpgradeRequest​(WebSocketCoreClient webSocketClient,
    • Method Detail

      • addExtensions

        public void addExtensions​(ExtensionConfig... configs)
      • addExtensions

        public void addExtensions​(java.lang.String... configs)
      • setExtensions

        public void setExtensions​(java.util.List<ExtensionConfig> configs)
      • getSubProtocols

        public java.util.List<java.lang.String> getSubProtocols()
      • setSubProtocols

        public void setSubProtocols​(java.lang.String... protocols)
      • setSubProtocols

        public void setSubProtocols​(java.util.List<java.lang.String> protocols)
      • send

        public void send​(Response.CompleteListener listener)
        Description copied from interface: Request

        Sends this request and asynchronously notifies the given listener for response events.

        This method should be used when the application needs to be notified of the various response events as they happen, or when the application needs to efficiently manage the response content.

        The listener passed to this method may implement not only Response.CompleteListener but also other response listener interfaces, and all the events implemented will be notified. This allows application code to write a single listener class to handle all relevant events.

        Specified by:
        send in interface Request
        send in class HttpRequest
        listener - the listener that receives response events
      • sendAsync

        public java.util.concurrent.CompletableFuture<CoreSession> sendAsync()
      • handleException

        protected void handleException​(java.lang.Throwable failure)
      • customize

        protected void customize​(EndPoint endPoint)
        Allow for overridden customization of endpoint (such as special transport level properties: e.g. TCP keepAlive)
      • getFrameHandler

        public abstract FrameHandler getFrameHandler()
      • requestComplete

        public void requestComplete()