|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface SessionHelper.Factory
This interface is used by the SessionHelper to obtain objects that implement various important parts of the Servlet specification, and by doing so, can be placed in front of the application in lieu of the application server's own objects, thus changing the "apparent implementation" of the application server itself (e.g. adding clustering.)
An implementation of the Factory is located dynamically by the SessionHelper based on the version of the Servlet specification that it determines it can support at runtime. The Factory can be explicitly specified as well, by setting it in the initial parameters of the ServletContext, which are placed in the XML deployment descriptor for the web application.
Method Summary | |
---|---|
FilterConfig |
instantiateFilterConfig(FilterConfig cfg)
Given an application server's FilterConfig object, create a wrapper. |
HttpServletRequest |
instantiateHttpServletRequest(HttpRequestContext ctx,
HttpServletRequest req)
Create an HttpServletRequest wrapper. |
HttpServletResponse |
instantiateHttpServletResponse(HttpRequestContext ctx,
HttpServletResponse resp)
Create an HttpServletResponse wrapper. |
HttpSession |
instantiateHttpSession(HttpSessionCollection collection)
Create a new HttpSession object. |
HttpSession |
instantiateHttpSession(HttpSessionCollection collection,
String sId)
Create an HttpSession object for an existing session ID. |
HttpSessionContext |
instantiateHttpSessionContext()
Create an HttpSessionContext implementation. |
RequestDispatcher |
instantiateRequestDispatcher(RequestDispatcher disp)
Create a RequestDispatcher wrapper. |
ServletConfig |
instantiateServletConfig(ServletConfig cfg)
Given an application server's ServletConfig object, create a wrapper. |
ServletContext |
instantiateServletContext()
Create a ServletContext wrapper implementation. |
ServletRequest |
instantiateServletRequest(RequestContext ctx,
ServletRequest req)
Create an ServletRequest wrapper. |
ServletResponse |
instantiateServletResponse(RequestContext ctx,
ServletResponse resp)
Create an ServletResponse wrapper. |
SessionHelper |
instantiateSessionHelper(ServletContext ctx)
Given an application server's ServletContext object, initialize the factory and create the SessionHelper object. |
Method Detail |
---|
SessionHelper instantiateSessionHelper(ServletContext ctx)
ctx
- an application server ServletContext object
ServletContext instantiateServletContext()
HttpSessionContext instantiateHttpSessionContext()
FilterConfig instantiateFilterConfig(FilterConfig cfg)
cfg
- an application server FilterConfig object
ServletConfig instantiateServletConfig(ServletConfig cfg)
cfg
- an application server ServletConfig object
ServletRequest instantiateServletRequest(RequestContext ctx, ServletRequest req)
ctx
- the request contextreq
- the request object from the container
ServletResponse instantiateServletResponse(RequestContext ctx, ServletResponse resp)
ctx
- the request contextresp
- the response object from the container
HttpServletRequest instantiateHttpServletRequest(HttpRequestContext ctx, HttpServletRequest req)
ctx
- the HTTP request contextreq
- the HTTP request object from the container
HttpServletResponse instantiateHttpServletResponse(HttpRequestContext ctx, HttpServletResponse resp)
ctx
- the HTTP request contextresp
- the HTTP response object from the container
HttpSession instantiateHttpSession(HttpSessionCollection collection)
collection
- the HttpSessionCollection that manages the
session models
HttpSession instantiateHttpSession(HttpSessionCollection collection, String sId)
collection
- the HttpSessionCollection that manages the
session modelssId
- the session ID
RequestDispatcher instantiateRequestDispatcher(RequestDispatcher disp)
disp
- the request dispatcher object from the container
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |