Class WebSocketNegotiation

java.lang.Object
org.eclipse.jetty.websocket.core.server.WebSocketNegotiation
Direct Known Subclasses:
RFC6455Negotiation, RFC8441Negotiation

public abstract class WebSocketNegotiation extends Object
  • Constructor Details

    • WebSocketNegotiation

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

    • getBaseRequest

      public Request getBaseRequest()
    • upgrade

      public void upgrade()
    • getRequest

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

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

      public void negotiate() throws BadMessageException
      Throws:
      BadMessageException
    • negotiateHeaders

      protected void negotiateHeaders(Request baseRequest)
    • validateHeaders

      public abstract boolean validateHeaders()
    • getVersion

      public String getVersion()
    • getSubprotocol

      public String getSubprotocol()
    • setSubprotocol

      public void setSubprotocol(String protocol)
    • getOfferedSubprotocols

      public List<String> getOfferedSubprotocols()
    • getOfferedExtensions

      public List<ExtensionConfig> getOfferedExtensions()
    • getNegotiatedExtensions

      public List<ExtensionConfig> getNegotiatedExtensions()
    • setNegotiatedExtensions

      public void setNegotiatedExtensions(List<ExtensionConfig> extensions)
    • toString

      public String toString()
      Overrides:
      toString in class Object