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

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

public class AddCookieHandler
extends java.lang.Object
implements Handler

Set a cookie in the response.

Variable Type Mode Default Description
cookiename Parameter Required - Name of the cookie.
cookievalue Parameter Required - Value of the cookie
maxage Parameter Optional -1 Maximum age of the cookie in seconds. Must be an integer
path Parameter Optional / Path of the cookie
Example usage:


Constructor Summary
AddCookieHandler()
           
 
Method Summary
 void doHandle(FormDefinition form, State formState, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Processes the form.
 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
 

Constructor Detail

AddCookieHandler

public AddCookieHandler()
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

doHandle

public void doHandle(FormDefinition form,
                     State formState,
                     javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              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
request - The http request
response - The http response
Throws:
HandleException - If the form values could not be handled correctly


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