|
PageMixer API - 3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jp.ne.dti.lares.foozy.pagemixer.servlet.ContextFactory
Factory to create ConsumerContext.
With PageServlet
(or derived classes from it),
this provides customization point to create
ConsumerContext
in your specific way.
Constructor Summary | |
ContextFactory()
Constructor. |
Method Summary | |
void |
cleanup(javax.servlet.http.HttpServlet servlet)
Finalize. |
ConsumerContext |
create(javax.servlet.http.HttpServlet servlet,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Create ConsumerContext. |
void |
setup(javax.servlet.http.HttpServlet servlet)
Initialize. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContextFactory()
Method Detail |
public void setup(javax.servlet.http.HttpServlet servlet) throws javax.servlet.ServletException
This method provides chance of specific initialization. For example:
This is invoked from PageServlet.init()
.
This implementation does nothing
servlet
- with which this object worksjavax.servlet.ServletException
- if initialization failscleanup(HttpServlet)
public void cleanup(javax.servlet.http.HttpServlet servlet)
You should release all resources
which you allocate in setup(HttpServlet)
in this method.
This is invoked from PageServlet.destroy()
.
This implementation does nothing
servlet
- with which this object workspublic ConsumerContext create(javax.servlet.http.HttpServlet servlet, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
You can customize
ConsumerContext
creation procedure, for example:
This is invoked from
PageServlet#doAction()
per request.
This implementation returns ServletConsumerContext
.
servlet
- of current requestrequest
- of current request to Servletresponse
- of current request to Servlet
|
PageMixer API - 3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |