nl.gx.webmanager.handler.forms.handling
Class DummyHandleExceptionHandler

java.lang.Object
  extended by nl.gx.webmanager.handler.forms.handling.DummyHandleExceptionHandler
All Implemented Interfaces:
FormComponent, Handler

public class DummyHandleExceptionHandler
extends java.lang.Object
implements Handler

Always returns an error. Can be useful in combination with a precondition. Add this handler to abort the flow in order to prevent subsequent handlers to be called.

Variable Type Mode Default Description
error Message Required - This parameter can be filled using XSLT.
Example usage:


Field Summary
static java.lang.String PARAM_ERROR
           
 
Constructor Summary
DummyHandleExceptionHandler()
           
 
Method Summary
 void doHandle(FormDefinition form, State formState, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Processes the form.
 void init(FormComponentConfig c)
          Passes the initialization parameters to the component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_ERROR

public static final java.lang.String PARAM_ERROR
See Also:
Constant Field Values
Constructor Detail

DummyHandleExceptionHandler

public DummyHandleExceptionHandler()
Method Detail

init

public void init(FormComponentConfig c)
          throws InitializationException
Description copied from interface: FormComponent
Passes the initialization parameters to the component.

Specified by:
init in interface FormComponent
Parameters:
c - The FormComponentConfig object that contains configutation information for this component.
Throws:
InitializationException - If initialization failed

doHandle

public void doHandle(FormDefinition form,
                     State formState,
                     javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse res)
              throws HandleException
Description copied from interface: Handler
Processes the form.

Specified by:
doHandle in interface Handler
Parameters:
form - The definition of the form for which the submitted values should be handled.
formState - The session values for the form
req - The http request
res - The http response
Throws:
HandleException - If the form values could not be handled correctly


Copyright © 2007-2011 GX Software BV. All Rights Reserved.