com.cc.framework.http
Class RequestDecorator

java.lang.Object
  extended bycom.cc.framework.http.RequestDecorator

public abstract class RequestDecorator
extends java.lang.Object

The RequestDecorator is used to add additional parameters to URL's used or generated within a control.

Since:
1.0
Version:
$Revision: 1.12 $
Author:
Gernot Schulz

Constructor Summary
private RequestDecorator()
          Constructor
 
Method Summary
static java.lang.String getValue(java.lang.String key, RequestDecorationType type, javax.servlet.http.HttpServletRequest request)
          Returns a Value
static java.util.Hashtable getValueList(RequestDecorationType type, javax.servlet.jsp.PageContext pageContext)
          Returns the Collection with hidden data Objects
static void parseRequest(javax.servlet.http.HttpServletRequest request)
          Fills the Collection from the Request.
static void setValue(java.lang.String key, java.lang.String value, RequestDecorationType type, javax.servlet.http.HttpServletRequest request, HttpScope scope)
          Sets a Value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestDecorator

private RequestDecorator()
Constructor

Method Detail

setValue

public static void setValue(java.lang.String key,
                            java.lang.String value,
                            RequestDecorationType type,
                            javax.servlet.http.HttpServletRequest request,
                            HttpScope scope)
Sets a Value

Parameters:
key - key under which the Data should be stored in the specified Scope (Session, Request)
value - Value to store
type - RequestDecorationType
request - HttpServletRequest
scope - HttpScope

getValue

public static java.lang.String getValue(java.lang.String key,
                                        RequestDecorationType type,
                                        javax.servlet.http.HttpServletRequest request)
Returns a Value

Parameters:
key - Key under which the Object is stored
type - RequestDecorationType
request - HttpServletRequest
Returns:
String

getValueList

public static java.util.Hashtable getValueList(RequestDecorationType type,
                                               javax.servlet.jsp.PageContext pageContext)
Returns the Collection with hidden data Objects

Parameters:
type - HiddenDataType
pageContext - PageContext
Returns:
Hashtable

parseRequest

public static void parseRequest(javax.servlet.http.HttpServletRequest request)
Fills the Collection from the Request. The fields must follow the naming convention as defined in class RequestDecorationType.

Parameters:
request - HttpServletRequest


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.