Interface ServerUpgradeRequest
- All Superinterfaces:
 Attributes, Content.Source, Request
Upgrade request used for websocket negotiation.
Provides getters for things like the requested extensions and subprotocols so that the headers don't have to be parsed manually.
This should only be used during the websocket negotiation.
- 
Nested Class Summary
Nested classes/interfaces inherited from interface Attributes
Attributes.Layer, Attributes.Lazy, Attributes.Mapped, Attributes.SyntheticNested classes/interfaces inherited from interface Content.Source
Content.Source.FactoryNested classes/interfaces inherited from interface Request
Request.AttributesWrapper, Request.AuthenticationState, Request.Handler, Request.ServeAs, Request.Wrapper - 
Field Summary
Fields inherited from interface Attributes
NULLFields inherited from interface Request
COOKIE_ATTRIBUTE, DEFAULT_LOCALES, LOG - 
Method Summary
Methods inherited from interface Attributes
asAttributeMap, clearAttributes, equals, getAttribute, getAttributeNameSet, hashCode, removeAttribute, setAttributeMethods inherited from interface Content.Source
fail, fail, getLength, rewindMethods inherited from interface Request
addFailureListener, addHttpStreamWrapper, addIdleTimeoutListener, consumeAvailable, demand, getBeginNanoTime, getComponents, getConnectionMetaData, getContext, getHeaders, getHeadersNanoTime, getHttpURI, getId, getMethod, getSession, getTrailers, getTunnelSupport, isSecure, push, read 
- 
Method Details
- 
getWebSocketComponents
WebSocketComponents getWebSocketComponents()- Returns:
 - The WebSocket components used for this upgrade request
 
 - 
getExtensions
List<ExtensionConfig> getExtensions()- Returns:
 - The extensions offered
 
 - 
getProtocolVersion
String getProtocolVersion()- Returns:
 - WebSocket protocol version from "Sec-WebSocket-Version" header
 
 - 
getSubProtocols
 - 
hasSubProtocol
- Parameters:
 subprotocol- A sub protocol name- Returns:
 - True if the sub protocol was offered
 
 
 -