Interface ServerUpgradeRequest
- All Superinterfaces:
Attributes
,Content.Source
,Request
- All Known Implementing Classes:
ServerUpgradeRequestDelegate
The HTTP request to upgrade to WebSocket.
An instance of this class is given as a parameter to a
WebSocketCreator
, so that applications can interact
with the request.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Attributes
Attributes.Layer, Attributes.Lazy, Attributes.Mapped, Attributes.Synthetic
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.Request
Request.AttributesWrapper, Request.AuthenticationState, Request.Handler, Request.ServeAs, Request.Wrapper
-
Field Summary
Fields inherited from interface org.eclipse.jetty.util.Attributes
NULL
Fields inherited from interface org.eclipse.jetty.server.Request
COOKIE_ATTRIBUTE, DEFAULT_LOCALES, LOG
-
Method Summary
Methods inherited from interface org.eclipse.jetty.util.Attributes
asAttributeMap, clearAttributes, equals, getAttribute, getAttributeNameSet, hashCode, removeAttribute, setAttribute
Methods inherited from interface org.eclipse.jetty.io.Content.Source
fail, fail, getLength, rewind
Methods inherited from interface org.eclipse.jetty.server.Request
addFailureListener, addHttpStreamWrapper, addIdleTimeoutListener, consumeAvailable, demand, getBeginNanoTime, getComponents, getConnectionMetaData, getContext, getHeaders, getHeadersNanoTime, getHttpURI, getId, getMethod, getSession, getTrailers, getTunnelSupport, isSecure, push, read
-
Method Details
-
getExtensions
List<ExtensionConfig> getExtensions()- Returns:
- the list of extensions provided by the client
-
getSubProtocols
- Returns:
- the list of sub-protocols provided by the client
-
hasSubProtocol
- Parameters:
subProtocol
- the sub-protocol to search- Returns:
- whether this request contains the given sub-protocol
-