org.displaytag.util
Interface RequestHelper

All Known Implementing Classes:
DefaultRequestHelper

public interface RequestHelper

A RequestHelper object is used to read parameters from the request. Main features are handling of numeric parameters and the ability to create Href objects from the current request.

Version:
$Revision: 1081 $ ($Author: fgiust $)
Author:
Fabrizio Giustina

Method Summary
 Href getHref()
          return the current Href for the request (base url and parameters).
 java.lang.Integer getIntParameter(java.lang.String key)
          Reads an Integer parameter from the request.
 java.lang.String getParameter(java.lang.String key)
          Reads a String parameter from the request.
 java.util.Map getParameterMap()
          Returns a Map containing all the parameters in the request.
 

Method Detail

getHref

Href getHref()
return the current Href for the request (base url and parameters).

Returns:
Href

getParameter

java.lang.String getParameter(java.lang.String key)
Reads a String parameter from the request.

Parameters:
key - String parameter name
Returns:
String parameter value

getIntParameter

java.lang.Integer getIntParameter(java.lang.String key)
Reads an Integer parameter from the request.

Parameters:
key - String parameter name
Returns:
Integer parameter value or null if the parameter is not found or it can't be transformed to an Integer

getParameterMap

java.util.Map getParameterMap()
Returns a Map containing all the parameters in the request.

Returns:
Map


Copyright © 2002-2007 the Displaytag team. All Rights Reserved.