nl.gx.webmanager.handler.forms.foundation
Class SessionFormFlowUtil

java.lang.Object
  extended by nl.gx.webmanager.handler.forms.foundation.SessionFormFlowUtil

public class SessionFormFlowUtil
extends java.lang.Object

This class contains some utility methods for manipulating and storing session formvalues.


Constructor Summary
SessionFormFlowUtil()
           
 
Method Summary
static java.lang.String getFlowId(javax.servlet.http.HttpServletRequest req)
          Returns the id of the flow for a form request.
static java.lang.String getFlowSessionKey(java.lang.String flowId)
          Computes the session key for storing the xml representation of the form session values.
static java.lang.String getParameterFromURL(java.lang.String urlString, java.lang.String parameter)
           
static java.lang.String getSessionFormXml(javax.servlet.http.HttpServletRequest req)
           
static java.lang.String getSessionFormXml(javax.servlet.http.HttpServletRequest req, java.lang.String flowId)
          Retrieves the xml representation for the relevant formflow from the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionFormFlowUtil

public SessionFormFlowUtil()
Method Detail

getFlowSessionKey

public static java.lang.String getFlowSessionKey(java.lang.String flowId)
Computes the session key for storing the xml representation of the form session values.

Parameters:
flowId - The id of the flow for whoch the values should be stored in the session
Returns:
The session key where the values of the flow will be stored.

getFlowId

public static java.lang.String getFlowId(javax.servlet.http.HttpServletRequest req)
Returns the id of the flow for a form request.

Parameters:
req - The submitted request for which the id of the formflow should be retrieved.
Returns:
The id of the corresponding flow, or null if the id could not be retrieved.

getSessionFormXml

public static java.lang.String getSessionFormXml(javax.servlet.http.HttpServletRequest req,
                                                 java.lang.String flowId)
Retrieves the xml representation for the relevant formflow from the request.

Parameters:
req - The request for the form
Returns:
The xml representation for the form flow, or null if the xml could not be retrieved from the clients session.

getSessionFormXml

public static java.lang.String getSessionFormXml(javax.servlet.http.HttpServletRequest req)

getParameterFromURL

public static java.lang.String getParameterFromURL(java.lang.String urlString,
                                                   java.lang.String parameter)


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