Class DelegatedServerUpgradeRequest
java.lang.Object
org.eclipse.jetty.server.Request.Wrapper
org.eclipse.jetty.websocket.server.internal.DelegatedServerUpgradeRequest
- All Implemented Interfaces:
org.eclipse.jetty.io.Content.Source, org.eclipse.jetty.server.Request, org.eclipse.jetty.util.Attributes, ServerUpgradeRequest
public class DelegatedServerUpgradeRequest
extends org.eclipse.jetty.server.Request.Wrapper
implements ServerUpgradeRequest
Internal implementation of the
ServerUpgradeRequest interface
which delegates to the websocket-core ServerUpgradeRequest.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Attributes
org.eclipse.jetty.util.Attributes.Layer, org.eclipse.jetty.util.Attributes.Lazy, org.eclipse.jetty.util.Attributes.Mapped, org.eclipse.jetty.util.Attributes.SyntheticNested classes/interfaces inherited from interface org.eclipse.jetty.io.Content.Source
org.eclipse.jetty.io.Content.Source.FactoryNested classes/interfaces inherited from interface org.eclipse.jetty.server.Request
org.eclipse.jetty.server.Request.AttributesWrapper, org.eclipse.jetty.server.Request.AuthenticationState, org.eclipse.jetty.server.Request.Handler, org.eclipse.jetty.server.Request.ServeAs, org.eclipse.jetty.server.Request.Wrapper -
Field Summary
Fields inherited from interface org.eclipse.jetty.util.Attributes
NULLFields inherited from interface org.eclipse.jetty.server.Request
COOKIE_ATTRIBUTE, DEFAULT_LOCALES, LOG -
Constructor Summary
ConstructorsConstructorDescriptionDelegatedServerUpgradeRequest(org.eclipse.jetty.websocket.core.server.ServerUpgradeRequest wrapped) -
Method Summary
Modifier and TypeMethodDescriptionList<org.eclipse.jetty.websocket.api.ExtensionConfig> org.eclipse.jetty.websocket.core.server.ServerUpgradeRequestbooleanhasSubProtocol(String subProtocol) Methods inherited from class org.eclipse.jetty.server.Request.Wrapper
addFailureListener, addHttpStreamWrapper, addIdleTimeoutListener, asAttributeMap, clearAttributes, consumeAvailable, demand, fail, getAttribute, getAttributeNameSet, getBeginNanoTime, getComponents, getConnectionMetaData, getContext, getHeaders, getHeadersNanoTime, getHttpURI, getId, getLength, getMethod, getSession, getTrailers, getTunnelSupport, isSecure, push, read, removeAttribute, setAttribute, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.Attributes
asAttributeMap, clearAttributes, equals, getAttribute, getAttributeNameSet, hashCode, removeAttribute, setAttributeMethods inherited from interface org.eclipse.jetty.io.Content.Source
fail, fail, getLength, rewindMethods 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
-
Constructor Details
-
DelegatedServerUpgradeRequest
public DelegatedServerUpgradeRequest(org.eclipse.jetty.websocket.core.server.ServerUpgradeRequest wrapped)
-
-
Method Details
-
getWrapped
public org.eclipse.jetty.websocket.core.server.ServerUpgradeRequest getWrapped()- Overrides:
getWrappedin classorg.eclipse.jetty.server.Request.Wrapper
-
getExtensions
- Specified by:
getExtensionsin interfaceServerUpgradeRequest- Returns:
- the list of extensions provided by the client
-
getSubProtocols
- Specified by:
getSubProtocolsin interfaceServerUpgradeRequest- Returns:
- the list of sub-protocols provided by the client
-
hasSubProtocol
- Specified by:
hasSubProtocolin interfaceServerUpgradeRequest- Parameters:
subProtocol- the sub-protocol to search- Returns:
- whether this request contains the given sub-protocol
-