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