|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.core.web.FormHandler
A form request handler. This class attempts to provide some workflow support, by making initial request parameter analysis and calling the appropriate event methods. A subclass should implement the various event methods.
| Constructor Summary | |
FormHandler()
|
|
| Method Summary | |
protected abstract void |
display(Request request,
int step)
Displays a form for the specified workflow step. |
protected abstract int |
handle(Request request,
int step)
Handles a validated form for the specified workflow step. |
void |
process(Request request)
Processes the form request. |
void |
processWithoutErrorHandling(Request request)
Processes the form request. |
protected abstract void |
validate(Request request,
int step)
Validates a form for the specified workflow step. |
protected void |
workflowEntered(Request request)
This method is called when the user is entering the workflow. |
protected void |
workflowError(Request request,
FormHandlingException e)
This method is called when an error was encountered during the processing. |
protected void |
workflowExited(Request request)
This method is called when the user is exiting the workflow. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FormHandler()
| Method Detail |
public final void process(Request request)
request - the request objectprocessWithoutErrorHandling(org.liquidsite.core.web.Request)
public final void processWithoutErrorHandling(Request request)
throws FormHandlingException
request - the request object
FormHandlingException - if an error was encountered
while processing the formprocess(org.liquidsite.core.web.Request)
protected abstract void display(Request request,
int step)
throws FormHandlingException
request - the request objectstep - the workflow step, or zero (0)
FormHandlingException - if an error was encountered
while processing the form
protected abstract void validate(Request request,
int step)
throws FormValidationException,
FormHandlingException
request - the request objectstep - the workflow step
FormValidationException - if the form request data
validation failed
FormHandlingException - if an error was encountered
while processing the form
protected abstract int handle(Request request,
int step)
throws FormHandlingException
request - the request objectstep - the workflow step
FormHandlingException - if an error was encountered
while processing the form
protected void workflowEntered(Request request)
throws FormHandlingException
request - the request object
FormHandlingException - if an error was encountered
while processing the form
protected void workflowExited(Request request)
throws FormHandlingException
NOTE: This method will not be called when the user exits the workflow in a non-standard way. Closing the browser window, using back buttons or causing form handling exceptions are all examples of when this method will NOT be called.
request - the request object
FormHandlingException - if an error was encountered
while processing the form
protected void workflowError(Request request,
FormHandlingException e)
request - the request objecte - the form handling exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||