Class AbstractHandshaker
java.lang.Object
org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker
- All Implemented Interfaces:
Handshaker
- Direct Known Subclasses:
RFC6455Handshaker
,RFC8441Handshaker
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract WebSocketConnection
createWebSocketConnection
(Request baseRequest, WebSocketCoreSession coreSession) protected abstract WebSocketNegotiation
newNegotiation
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, WebSocketComponents webSocketComponents) protected WebSocketConnection
newWebSocketConnection
(EndPoint endPoint, Executor executor, Scheduler scheduler, ByteBufferPool byteBufferPool, RetainableByteBufferPool retainableByteBufferPool, WebSocketCoreSession coreSession) protected WebSocketCoreSession
newWebSocketCoreSession
(jakarta.servlet.http.HttpServletRequest request, FrameHandler handler, Negotiated negotiated, WebSocketComponents components) protected abstract void
prepareResponse
(Response response, WebSocketNegotiation negotiation) boolean
upgradeRequest
(WebSocketNegotiator negotiator, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, WebSocketComponents components, Configuration.Customizer defaultCustomizer) protected abstract boolean
validateFrameHandler
(FrameHandler frameHandler, jakarta.servlet.http.HttpServletResponse response) protected boolean
validateNegotiation
(WebSocketNegotiation negotiation) protected abstract boolean
validateRequest
(jakarta.servlet.http.HttpServletRequest request)
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG
-
-
Constructor Details
-
AbstractHandshaker
public AbstractHandshaker()
-
-
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
-
validateRequest
protected abstract boolean validateRequest(jakarta.servlet.http.HttpServletRequest request) -
newNegotiation
protected abstract WebSocketNegotiation newNegotiation(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, WebSocketComponents webSocketComponents) -
validateFrameHandler
protected abstract boolean validateFrameHandler(FrameHandler frameHandler, jakarta.servlet.http.HttpServletResponse response) -
validateNegotiation
-
newWebSocketCoreSession
protected WebSocketCoreSession newWebSocketCoreSession(jakarta.servlet.http.HttpServletRequest request, FrameHandler handler, Negotiated negotiated, WebSocketComponents components) -
createWebSocketConnection
protected abstract WebSocketConnection createWebSocketConnection(Request baseRequest, WebSocketCoreSession coreSession) -
newWebSocketConnection
protected WebSocketConnection newWebSocketConnection(EndPoint endPoint, Executor executor, Scheduler scheduler, ByteBufferPool byteBufferPool, RetainableByteBufferPool retainableByteBufferPool, WebSocketCoreSession coreSession) -
prepareResponse
-