Class WebSocketNegotiation
java.lang.Object
org.eclipse.jetty.websocket.core.server.internal.WebSocketNegotiation
- Direct Known Subclasses:
RFC6455Negotiation
,RFC8441Negotiation
-
Constructor Summary
ConstructorDescriptionWebSocketNegotiation
(Request request, Response response, Callback callback, WebSocketComponents webSocketComponents) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
negotiateHeaders
(Request baseRequest) void
setNegotiatedExtensions
(List<ExtensionConfig> extensions) void
setSubprotocol
(String protocol) toString()
abstract boolean
-
Constructor Details
-
WebSocketNegotiation
public WebSocketNegotiation(Request request, Response response, Callback callback, WebSocketComponents webSocketComponents)
-
-
Method Details
-
getRequest
-
getResponse
-
getCallback
-
getWebSocketComponents
-
negotiate
- Throws:
BadMessageException
-
negotiateHeaders
-
validateHeaders
public abstract boolean validateHeaders() -
getVersion
-
getSubprotocol
-
setSubprotocol
-
getOfferedSubprotocols
-
getOfferedExtensions
-
getNegotiatedExtensions
-
setNegotiatedExtensions
-
toString
-