Class WebSocketNegotiation

    • Constructor Detail

      • WebSocketNegotiation

        public WebSocketNegotiation​(Request baseRequest,
                                    javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    WebSocketComponents webSocketComponents)
    • Method Detail

      • getBaseRequest

        public Request getBaseRequest()
      • upgrade

        public void upgrade()
      • getRequest

        public javax.servlet.http.HttpServletRequest getRequest()
      • getResponse

        public javax.servlet.http.HttpServletResponse getResponse()
      • negotiateHeaders

        protected void negotiateHeaders​(Request baseRequest)
      • validateHeaders

        public abstract boolean validateHeaders()
      • getVersion

        public java.lang.String getVersion()
      • getSubprotocol

        public java.lang.String getSubprotocol()
      • setSubprotocol

        public void setSubprotocol​(java.lang.String protocol)
      • getOfferedSubprotocols

        public java.util.List<java.lang.String> getOfferedSubprotocols()
      • getOfferedExtensions

        public java.util.List<ExtensionConfig> getOfferedExtensions()
      • getNegotiatedExtensions

        public java.util.List<ExtensionConfig> getNegotiatedExtensions()
      • setNegotiatedExtensions

        public void setNegotiatedExtensions​(java.util.List<ExtensionConfig> extensions)
      • toString

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