Interface ServerUpgradeRequest

All Superinterfaces:
Attributes, Content.Source, Request
All Known Implementing Classes:
ServerUpgradeRequestDelegate

public interface ServerUpgradeRequest extends Request

The HTTP request to upgrade to WebSocket.

An instance of this class is given as a parameter to a WebSocketCreator, so that applications can interact with the request.

See Also:
  • Method Details

    • getExtensions

      List<ExtensionConfig> getExtensions()
      Returns:
      the list of extensions provided by the client
    • getSubProtocols

      List<String> getSubProtocols()
      Returns:
      the list of sub-protocols provided by the client
    • hasSubProtocol

      boolean hasSubProtocol(String subProtocol)
      Parameters:
      subProtocol - the sub-protocol to search
      Returns:
      whether this request contains the given sub-protocol