Package org.eclipse.jetty.server.session
Class SessionContext
- java.lang.Object
-
- org.eclipse.jetty.server.session.SessionContext
-
public class SessionContext extends Object
SessionContext Information about the context to which sessions belong: the Context, the SessionHandler of the context, and the unique name of the node. A SessionHandler is 1:1 with a SessionContext.
-
-
Field Summary
Fields Modifier and Type Field Description static StringNULL_VHOST
-
Constructor Summary
Constructors Constructor Description SessionContext(String workerName, ContextHandler.Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCanonicalContextPath()ContextHandler.ContextgetContext()SessionHandlergetSessionHandler()StringgetVhost()StringgetWorkerName()voidrun(Runnable r)Run a runnable in the context (with context classloader set) if there is one, otherwise just run it.StringtoString()
-
-
-
Field Detail
-
NULL_VHOST
public static final String NULL_VHOST
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SessionContext
public SessionContext(String workerName, ContextHandler.Context context)
-
-
Method Detail
-
getWorkerName
public String getWorkerName()
-
getSessionHandler
public SessionHandler getSessionHandler()
-
getContext
public ContextHandler.Context getContext()
-
getCanonicalContextPath
public String getCanonicalContextPath()
-
getVhost
public String getVhost()
-
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
-
-