org.jlf.httpRequest
Class Workflow

java.lang.Object
  |
  +--org.jlf.httpRequest.Workflow

public abstract class Workflow
extends java.lang.Object

This class serves as the key class in the httpRequest processing framework to extend when creating specific request processing workflows and work steps. It allows the user to hook into the framework and perform workflow/step specific actions after data is mapped but before the HTTP output page is displayed.

This class also wraps the HTTP request, so you can always have direct access to any servlet information should the Processor class not map enough information for you.

See Also:
Processor

Field Summary
protected  AbstractProcessor processor
          Holds the HTTP Request servlet.
 
Constructor Summary
Workflow()
           
 
Method Summary
 java.io.PrintWriter getOutputStream()
          Returns the output stream of the servlet, lazy-initialized so that we don't open the stream until we know we need it.
 javax.servlet.http.HttpServletRequest getRequest()
          Returns the HTTP Request object.
 javax.servlet.http.HttpServletResponse getResponse()
          Returns the HTTP Response object.
protected  javax.servlet.http.HttpSession getSession()
          Retrieves (or creates if not yet created) the user's session info.
 void setServletInfo(AbstractProcessor processor)
          Sets the Processor servlet that initiated the workflow/step request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

processor

protected AbstractProcessor processor
Holds the HTTP Request servlet.

Constructor Detail

Workflow

public Workflow()
Method Detail

getRequest

public javax.servlet.http.HttpServletRequest getRequest()
Returns the HTTP Request object.


getResponse

public javax.servlet.http.HttpServletResponse getResponse()
Returns the HTTP Response object.


getSession

protected javax.servlet.http.HttpSession getSession()
Retrieves (or creates if not yet created) the user's session info.


getOutputStream

public java.io.PrintWriter getOutputStream()
Returns the output stream of the servlet, lazy-initialized so that we don't open the stream until we know we need it.


setServletInfo

public void setServletInfo(AbstractProcessor processor)
Sets the Processor servlet that initiated the workflow/step request.