|
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.ForwardCondition
Abstraction of servlet control forwarding.
This encapsulates:
ForwardStrategy
Constructor Summary | |
ForwardCondition()
Constructor. |
Method Summary | |
void |
cleanup(javax.servlet.http.HttpServlet servlet)
Finalize. |
abstract java.lang.String |
forwards(ConsumerContext context)
Decide destination to forward servlet control. |
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 ForwardCondition()
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 ForwardStrategy.setup(HttpServlet)
.
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
ForwardStrategy.cleanup(HttpServlet)
.
This implementation does nothing
servlet
- with which this object workspublic abstract java.lang.String forwards(ConsumerContext context)
This method has to:
ServletContext#getRequestDispatcher()
,
and forwards control.context
- of request
|
PageMixer API - 3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |