Class HandshakerSelector
java.lang.Object
org.eclipse.jetty.websocket.core.server.internal.HandshakerSelector
- All Implemented Interfaces:
Handshaker
Selects between the two Handshaker implementations,
RFC6455 (HTTP/1.1 WebSocket Upgrades)
and RFC68441 (HTTP/2 WebSocket Upgrades)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
upgradeRequest
(WebSocketNegotiator negotiator, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, WebSocketComponents components, Configuration.Customizer defaultCustomizer)
-
Constructor Details
-
HandshakerSelector
public HandshakerSelector()
-
-
Method Details
-
upgradeRequest
public boolean upgradeRequest(WebSocketNegotiator negotiator, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, WebSocketComponents components, Configuration.Customizer defaultCustomizer) throws IOException - Specified by:
upgradeRequest
in interfaceHandshaker
- Throws:
IOException
-