Class SessionContext

java.lang.Object
org.eclipse.jetty.session.SessionContext

public class SessionContext extends Object
SessionContext Information about the context to which sessions belong: the Context, the SessionManager of the context, and the unique name of the node. A SessionManager is 1:1 with a SessionContext.
  • Field Details

  • Constructor Details

    • SessionContext

      protected SessionContext()
    • SessionContext

      public SessionContext(SessionManager sessionManager)
  • Method Details

    • getWorkerName

      public String getWorkerName()
    • getSessionManager

      public SessionManager getSessionManager()
    • getContext

      public Context getContext()
    • getCanonicalContextPath

      public String getCanonicalContextPath()
    • getVhost

      public String getVhost()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • run

      public void run(Runnable r)
      Run a runnable in the context (with context classloader set) if there is one, otherwise just run it.
      Parameters:
      r - the runnable