|
|||||||||||
| 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
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(org.apache.commons.workflow.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(org.apache.commons.workflow.ContextEvent event)
Invoked immediately after the specified Step was executed. |
void |
beforeActivity(org.apache.commons.workflow.ContextEvent event)
Invoked immediately before execution of the related Activity has started. |
void |
beforeStep(org.apache.commons.workflow.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(org.apache.commons.workflow.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.Servlet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
request - The servlet request we are processingresponse - The servlet response we are processing
java.io.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 java.io.IOException,
javax.servlet.ServletException
request - The servlet request we are processingresponse - The servlet response we are processing
java.io.IOException - if an input/output exception occurs
javax.servlet.ServletException - if a servlet exception occurs
public void init()
throws javax.servlet.ServletException
javax.servlet.ServletException - if we cannot process the activity
definition file for this activitypublic void setActivity(org.apache.commons.workflow.Activity activity)
Activity associated with this instance.
activity - The new associated Activitypublic void afterActivity(org.apache.commons.workflow.ContextEvent event)
afterActivity in interface org.apache.commons.workflow.ContextListenerevent - The ContextEvent that has occurredpublic void afterStep(org.apache.commons.workflow.ContextEvent event)
afterStep in interface org.apache.commons.workflow.ContextListenerevent - The ContextEvent that has occurredpublic void beforeActivity(org.apache.commons.workflow.ContextEvent event)
beforeActivity in interface org.apache.commons.workflow.ContextListenerevent - The ContextEvent that has occurredpublic void beforeStep(org.apache.commons.workflow.ContextEvent event)
beforeStep in interface org.apache.commons.workflow.ContextListenerevent - The ContextEvent that has occurred
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||