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.Synthetic

    Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Content.Source

    org.eclipse.jetty.io.Content.Source.Factory

    Nested 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

    NULL

    Fields inherited from interface org.eclipse.jetty.server.Request

    COOKIE_ATTRIBUTE, DEFAULT_LOCALES, LOG
  • Constructor Summary

    Constructors
    Constructor
    Description
    DelegatedServerUpgradeRequest(org.eclipse.jetty.websocket.core.server.ServerUpgradeRequest wrapped)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.eclipse.jetty.websocket.api.ExtensionConfig>
     
     
    org.eclipse.jetty.websocket.core.server.ServerUpgradeRequest
     
    boolean
    hasSubProtocol(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, toString

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    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
  • 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:
      getWrapped in class org.eclipse.jetty.server.Request.Wrapper
    • getExtensions

      public List<org.eclipse.jetty.websocket.api.ExtensionConfig> getExtensions()
      Specified by:
      getExtensions in interface ServerUpgradeRequest
      Returns:
      the list of extensions provided by the client
    • getSubProtocols

      public List<String> getSubProtocols()
      Specified by:
      getSubProtocols in interface ServerUpgradeRequest
      Returns:
      the list of sub-protocols provided by the client
    • hasSubProtocol

      public boolean hasSubProtocol(String subProtocol)
      Specified by:
      hasSubProtocol in interface ServerUpgradeRequest
      Parameters:
      subProtocol - the sub-protocol to search
      Returns:
      whether this request contains the given sub-protocol