Class ContextHandler.CoreContextRequest

java.lang.Object
org.eclipse.jetty.server.Request.Wrapper
org.eclipse.jetty.server.handler.ContextRequest
org.eclipse.jetty.ee8.nested.ContextHandler.CoreContextRequest
All Implemented Interfaces:
org.eclipse.jetty.io.Content.Source, org.eclipse.jetty.server.Request, org.eclipse.jetty.util.Attributes, org.eclipse.jetty.util.thread.Invocable
Enclosing class:
ContextHandler

public static class ContextHandler.CoreContextRequest extends org.eclipse.jetty.server.handler.ContextRequest
  • 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.util.thread.Invocable

    org.eclipse.jetty.util.thread.Invocable.Callable, org.eclipse.jetty.util.thread.Invocable.InvocationType, org.eclipse.jetty.util.thread.Invocable.ReadyTask, org.eclipse.jetty.util.thread.Invocable.Task

    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.util.thread.Invocable

    __nonBlocking, NOOP

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

    COOKIE_ATTRIBUTE, DEFAULT_LOCALES
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    CoreContextRequest(org.eclipse.jetty.server.Request wrapped, org.eclipse.jetty.server.handler.ContextHandler.ScopedContext context, HttpChannel httpChannel)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    Ensure that each session is committed - ie written out to storage if necessary - because the response is about to be returned to the client.
    void
    Release each of the sessions as the request is now complete
     
    org.eclipse.jetty.session.ManagedSession
     
    org.eclipse.jetty.session.ManagedSession
    getManagedSession(org.eclipse.jetty.session.SessionManager manager)
    Retrieve an existing session, if one exists, for a given SessionManager.
    org.eclipse.jetty.session.AbstractSessionManager.RequestedSession
     
    org.eclipse.jetty.server.Session
    getSession(boolean create)
     
    org.eclipse.jetty.session.SessionManager
     
    void
    setManagedSession(org.eclipse.jetty.session.ManagedSession managedSession)
     
    void
    setRequestedSession(org.eclipse.jetty.session.AbstractSessionManager.RequestedSession requestedSession)
    Remember the session that was extracted from the id in the request
    void
    setSessionManager(org.eclipse.jetty.session.SessionManager sessionManager)
     

    Methods inherited from class org.eclipse.jetty.server.handler.ContextRequest

    addFailureListener, addIdleTimeoutListener, demand, getContext

    Methods inherited from class org.eclipse.jetty.server.Request.Wrapper

    addHttpStreamWrapper, asAttributeMap, clearAttributes, consumeAvailable, fail, getAttribute, getAttributeNameSet, getBeginNanoTime, getComponents, getConnectionMetaData, getHeaders, getHeadersNanoTime, getHttpURI, getId, getLength, getMethod, getTrailers, getTunnelSupport, getWrapped, isSecure, push, read, removeAttribute, setAttribute, toString

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.eclipse.jetty.util.Attributes

    equals, hashCode

    Methods inherited from interface org.eclipse.jetty.io.Content.Source

    fail, rewind

    Methods inherited from interface org.eclipse.jetty.util.thread.Invocable

    getInvocationType
  • Constructor Details

    • CoreContextRequest

      protected CoreContextRequest(org.eclipse.jetty.server.Request wrapped, org.eclipse.jetty.server.handler.ContextHandler.ScopedContext context, HttpChannel httpChannel)
  • Method Details

    • changeSessionId

      public String changeSessionId()
    • getHttpChannel

      public HttpChannel getHttpChannel()
    • getManagedSession

      public org.eclipse.jetty.session.ManagedSession getManagedSession()
    • getManagedSession

      public org.eclipse.jetty.session.ManagedSession getManagedSession(org.eclipse.jetty.session.SessionManager manager)
      Retrieve an existing session, if one exists, for a given SessionManager. A session belongs to a single SessionManager, and a context can only have a single SessionManager. Thus, calling this method is equivalent to asking "Does a ManagedSession already exist for the given context?".
      Parameters:
      manager - the SessionManager that should be associated with a ManagedSession
      Returns:
      the ManagedSession that already exists in the given context and is managed by the given SessionManager.
    • setManagedSession

      public void setManagedSession(org.eclipse.jetty.session.ManagedSession managedSession)
    • getSessionManager

      public org.eclipse.jetty.session.SessionManager getSessionManager()
    • setRequestedSession

      public void setRequestedSession(org.eclipse.jetty.session.AbstractSessionManager.RequestedSession requestedSession)
      Remember the session that was extracted from the id in the request
      Parameters:
      requestedSession - info about the session matching the id in the request
    • completeSessions

      public void completeSessions()
      Release each of the sessions as the request is now complete
    • commitSessions

      public void commitSessions()
      Ensure that each session is committed - ie written out to storage if necessary - because the response is about to be returned to the client.
    • getRequestedSession

      public org.eclipse.jetty.session.AbstractSessionManager.RequestedSession getRequestedSession()
    • setSessionManager

      public void setSessionManager(org.eclipse.jetty.session.SessionManager sessionManager)
    • getSession

      public org.eclipse.jetty.server.Session getSession(boolean create)
      Specified by:
      getSession in interface org.eclipse.jetty.server.Request
      Overrides:
      getSession in class org.eclipse.jetty.server.Request.Wrapper