|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.commons.workflow.web.ActivityServlet
public class ActivityServlet
Demonstration servlet that illustrates one way that workflow support can
be integrated into web applications (or web services) without any
dependency on application frameworks. For this implementation, a servlet
definition (plus one or more servlet mappings) will be
associated with each Activity supported by this web
application.
Initialization parameters (defaults in square brackets):
Context implementation is stored.
[org.apache.commons.workflow.web.CONTEXT]initMapping(), which logs to System.out
instead of the servlet log. [0]
| Constructor Summary | |
|---|---|
ActivityServlet()
|
|
| Method Summary | |
|---|---|
void |
afterActivity(ContextEvent event)
Invoked immediately after execution of the related Activity has been completed normally, been suspended, or been aborted by the throwing of a StepException. |
void |
afterStep(ContextEvent event)
Invoked immediately after the specified Step was executed. |
void |
beforeActivity(ContextEvent event)
Invoked immediately before execution of the related Activity has started. |
void |
beforeStep(ContextEvent event)
Invoked immediately before the specified Step is executed. |
void |
destroy()
Perform a graceful shutdown of this servlet instance. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process a GET transaction. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process a POST transaction. |
void |
init()
Perform a graceful startup of this servlet instance. |
void |
setActivity(Activity activity)
Set the Activity associated with this instance. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActivityServlet()
| Method Detail |
|---|
public void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServlet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
doGet in class javax.servlet.http.HttpServletrequest - The servlet request we are processingresponse - The servlet response we are processing
IOException - if an input/output exception occurs
javax.servlet.ServletException - if a servlet exception occurs
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
doPost in class javax.servlet.http.HttpServletrequest - The servlet request we are processingresponse - The servlet response we are processing
IOException - if an input/output exception occurs
javax.servlet.ServletException - if a servlet exception occurs
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletException - if we cannot process the activity
definition file for this activitypublic void setActivity(Activity activity)
Activity associated with this instance.
activity - The new associated Activitypublic void afterActivity(ContextEvent event)
afterActivity in interface ContextListenerevent - The ContextEvent that has occurredpublic void afterStep(ContextEvent event)
afterStep in interface ContextListenerevent - The ContextEvent that has occurredpublic void beforeActivity(ContextEvent event)
beforeActivity in interface ContextListenerevent - The ContextEvent that has occurredpublic void beforeStep(ContextEvent event)
beforeStep in interface ContextListenerevent - The ContextEvent that has occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||