public class SessionHelperManager extends Object
This is a helper class for the SessionHelper. All methods are static.
Modifier and Type | Field and Description |
---|---|
static String |
CTX_ATTR_HELPER
The name of the application server context's attribute that Coherence stores its session helper object under.
|
static String |
DEFAULT_FACTORY
The default class name for the SessionHelper factory implementation.
|
Constructor and Description |
---|
SessionHelperManager() |
Modifier and Type | Method and Description |
---|---|
protected static SessionHelper |
createSessionHelper(javax.servlet.ServletContext ctx) |
static SessionHelper |
ensureSessionHelper(javax.servlet.ServletContext ctx)
Find the existing (or create new) Coherence SessionHelper that will act as a coordinator to manage the creation and lookup of container objects, fake container objects (the Coherence implementation of the Servlet spec interfaces), and helper classes (such as the SessionHelper itself, the servlet model collection, etc.).
|
static SessionHelper |
ensureSessionHelper(javax.servlet.ServletContext ctx, boolean configureSessionHelper)
Find the existing (or create new) Coherence SessionHelper that will act as a coordinator to manage the creation and lookup of container objects, fake container objects (the Coherence implementation of the Servlet spec interfaces), and helper classes (such as the SessionHelper itself, the servlet model collection, etc.).
|
static javax.servlet.ServletContext |
ensureWrappedServletContext(javax.servlet.ServletContext ctx)
Make sure that there is a ServletContext wrapper for the specified servlet context for this application, creating one if necessary.
|
static int[] |
getSupportedVersion(javax.servlet.ServletContext ctx)
Determine the version of the spec to find the factory for based on the passed application server ServletContext object.
|
static javax.servlet.ServletContext |
getWrappedServletContext(javax.servlet.ServletContext ctx)
Determine the ServletContext wrapper for the specified application server context.
|
public static final String DEFAULT_FACTORY
public static final String CTX_ATTR_HELPER
protected static SessionHelper createSessionHelper(javax.servlet.ServletContext ctx)
public static SessionHelper ensureSessionHelper(javax.servlet.ServletContext ctx)
ctx
- the application server's ServletContext objectpublic static SessionHelper ensureSessionHelper(javax.servlet.ServletContext ctx, boolean configureSessionHelper)
ctx
- the application server's ServletContext objectconfigureSessionHelper
- if true, configure the new SessionHelper objpublic static int[] getSupportedVersion(javax.servlet.ServletContext ctx)
Note: Hard-coded to support 2.3 through 2.5.
ctx
- the application server's ServletContext objectpublic static javax.servlet.ServletContext getWrappedServletContext(javax.servlet.ServletContext ctx)
ctx
- a ServletContextpublic static javax.servlet.ServletContext ensureWrappedServletContext(javax.servlet.ServletContext ctx)
ctx
- this application's ServletContext