nl.gx.webmanager.handler.forms.routing
Class VerificationCookieWriteRedirectRouter

java.lang.Object
  extended by nl.gx.webmanager.handler.forms.routing.VerificationCookieWriteRedirectRouter
All Implemented Interfaces:
FormComponent, Router

public class VerificationCookieWriteRedirectRouter
extends java.lang.Object
implements Router

Resends the request to the form handler while writing a verification cookie with a timestamp. The purpose is to verify the clients ability to store cookies. This way nobody without this ability can continue.

Variable Type Mode Default Description
None - - - -
Example usage:

See Also:
VerificationCookieValidator

Field Summary
static java.lang.String TESTCOOKIE
           
 
Constructor Summary
VerificationCookieWriteRedirectRouter()
           
 
Method Summary
 RoutingResult doRouting(FormDefinition form, State formState, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Performs routing based on the form definition and the values of the client.
 void init(FormComponentConfig config)
          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

TESTCOOKIE

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

VerificationCookieWriteRedirectRouter

public VerificationCookieWriteRedirectRouter()
Method Detail

init

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

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

doRouting

public RoutingResult doRouting(FormDefinition form,
                               State formState,
                               javax.servlet.http.HttpServletRequest req,
                               javax.servlet.http.HttpServletResponse res)
Description copied from interface: Router
Performs routing based on the form definition and the values of the client.

Specified by:
doRouting in interface Router
Parameters:
form - The definition of the current form flow
formState - The object representing the state of the client filling out a form.
req - The http servlet request
res - The http servlet response
Returns:
The routing result for the form, or null if the router doesn't match


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