net.sf.springlayout.web.util
Class RequestUtilSupport

java.lang.Object
  extended by net.sf.springlayout.web.util.RequestUtilSupport

public class RequestUtilSupport
extends java.lang.Object

Supports Spring's RequestUtils providing variations to the standard requestUtils Methods

Author:
Rob Monie

Constructor Summary
RequestUtilSupport()
           
 
Method Summary
static java.lang.Integer getIntegerParameter(javax.servlet.http.HttpServletRequest request, java.lang.String name, boolean allowEmpty)
          Gets an Integer parameter from the request with the option of preventing an empty value for the parameter throwing an exception but returning null instead.
static java.lang.Long getLongParameter(javax.servlet.http.HttpServletRequest request, java.lang.String name, boolean allowEmpty)
          Gets a Long parameter from the request with the option of preventing an empty value for the parameter throwing an exception but returning null instead.
static java.util.Map getStateMapForUrl(java.util.Map stateMap)
          Converts a statemap for use in urls by removing params that should not be reflected in the url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestUtilSupport

public RequestUtilSupport()
Method Detail

getIntegerParameter

public static java.lang.Integer getIntegerParameter(javax.servlet.http.HttpServletRequest request,
                                                    java.lang.String name,
                                                    boolean allowEmpty)
                                             throws org.springframework.web.bind.ServletRequestBindingException
Gets an Integer parameter from the request with the option of preventing an empty value for the parameter throwing an exception but returning null instead.

Parameters:
request -
name -
allowEmpty -
Returns:
integer value
Throws:
org.springframework.web.bind.ServletRequestBindingException

getLongParameter

public static java.lang.Long getLongParameter(javax.servlet.http.HttpServletRequest request,
                                              java.lang.String name,
                                              boolean allowEmpty)
                                       throws org.springframework.web.bind.ServletRequestBindingException
Gets a Long parameter from the request with the option of preventing an empty value for the parameter throwing an exception but returning null instead.

Parameters:
request -
name -
allowEmpty -
Returns:
long value
Throws:
org.springframework.web.bind.ServletRequestBindingException

getStateMapForUrl

public static java.util.Map getStateMapForUrl(java.util.Map stateMap)
Converts a statemap for use in urls by removing params that should not be reflected in the url.

Parameters:
map -
Returns:


Copyright © 2005-2007 Spring Layout Team. All Rights Reserved.