Class RFC6455Handshaker
java.lang.Object
org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker
org.eclipse.jetty.websocket.core.server.internal.RFC6455Handshaker
- 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 baseRequest, 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) protected boolean
validateNegotiation
(WebSocketNegotiation negotiation) Methods inherited from class org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker
newWebSocketConnection, newWebSocketCoreSession, upgradeRequest
-
Constructor Details
-
RFC6455Handshaker
public RFC6455Handshaker()
-
-
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
-
validateNegotiation
- Overrides:
validateNegotiation
in classAbstractHandshaker
-
createWebSocketConnection
protected WebSocketConnection createWebSocketConnection(Request baseRequest, WebSocketCoreSession coreSession) - Specified by:
createWebSocketConnection
in classAbstractHandshaker
-
prepareResponse
- Specified by:
prepareResponse
in classAbstractHandshaker
-