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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected WebSocketConnectioncreateWebSocketConnection(Request baseRequest, WebSocketCoreSession coreSession) booleanisWebSocketUpgradeRequest(Request request) A preliminary check to see if a request is likely to be a valid WebSocket Upgrade Request.protected WebSocketNegotiationnewNegotiation(Request request, Response response, Callback callback, WebSocketComponents webSocketComponents) protected voidprepareResponse(Response response, WebSocketNegotiation negotiation) protected booleanvalidateNegotiation(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:HandshakerA preliminary check to see if a request is likely to be a valid WebSocket Upgrade Request. If this returns true the
Requestmay 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:
isWebSocketUpgradeRequestin interfaceHandshaker- Overrides:
isWebSocketUpgradeRequestin 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:
newNegotiationin classAbstractHandshaker
-
validateNegotiation
- Overrides:
validateNegotiationin classAbstractHandshaker
-
createWebSocketConnection
protected WebSocketConnection createWebSocketConnection(Request baseRequest, WebSocketCoreSession coreSession) - Specified by:
createWebSocketConnectionin classAbstractHandshaker
-
prepareResponse
- Specified by:
prepareResponsein classAbstractHandshaker
-