Class RFC8441Handshaker
java.lang.Object
org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker
org.eclipse.jetty.websocket.core.server.internal.RFC8441Handshaker
- All Implemented Interfaces:
Handshaker
-
Field Summary
Fields inherited from class org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker
LOG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected WebSocketConnection
createWebSocketConnection
(Request request, WebSocketCoreSession coreSession) boolean
isWebSocketUpgradeRequest
(Request request) A preliminary check to see if a request is likely to be a valid WebSocket Upgrade Request.protected WebSocketNegotiation
newNegotiation
(Request request, Response response, Callback callback, WebSocketComponents webSocketComponents) protected void
prepareResponse
(Response response, WebSocketNegotiation negotiation) Methods inherited from class org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker
newWebSocketConnection, newWebSocketCoreSession, upgradeRequest, validateNegotiation
-
Constructor Details
-
RFC8441Handshaker
public RFC8441Handshaker()
-
-
Method Details
-
isWebSocketUpgradeRequest
Description copied from interface:Handshaker
A preliminary check to see if a request is likely to be a valid WebSocket Upgrade Request. If this returns true the
Request
may be a valid upgrade request, but if this returns false returns false you can avoid callingHandshaker.upgradeRequest(WebSocketNegotiator, Request, Response, Callback, WebSocketComponents, Configuration.Customizer)
entirely as it will always fail- Specified by:
isWebSocketUpgradeRequest
in interfaceHandshaker
- Overrides:
isWebSocketUpgradeRequest
in classAbstractHandshaker
- Parameters:
request
- the request- Returns:
- true if the request is thought to be a valid websocket upgrade request.
-
newNegotiation
protected WebSocketNegotiation newNegotiation(Request request, Response response, Callback callback, WebSocketComponents webSocketComponents) - Specified by:
newNegotiation
in classAbstractHandshaker
-
createWebSocketConnection
protected WebSocketConnection createWebSocketConnection(Request request, WebSocketCoreSession coreSession) - Specified by:
createWebSocketConnection
in classAbstractHandshaker
-
prepareResponse
- Specified by:
prepareResponse
in classAbstractHandshaker
-