Class Negotiated


  • public class Negotiated
    extends java.lang.Object
    • Constructor Detail

      • Negotiated

        public Negotiated​(java.net.URI requestURI,
                          java.lang.String subProtocol,
                          boolean secure,
                          ExtensionStack extensions,
                          java.lang.String protocolVersion)
    • Method Detail

      • getRequestURI

        public java.net.URI getRequestURI()
      • getParameterMap

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getParameterMap()
      • getSubProtocol

        public java.lang.String getSubProtocol()
      • isSecure

        public boolean isSecure()
      • getProtocolVersion

        public java.lang.String getProtocolVersion()
      • toString

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

        public static java.net.URI toWebsocket​(java.net.URI uri)
        Convert to WebSocket ws or wss scheme URIs

        Converting http and https URIs to their WebSocket equivalent

        Parameters:
        uri - the input URI
        Returns:
        the WebSocket scheme URI for the input URI.