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