com.sdm.quasar.client.jsf.dialog
Class RequestParameterManager

java.lang.Object
  extended bycom.sdm.quasar.client.jsf.dialog.RequestParameterManager

public class RequestParameterManager
extends java.lang.Object

Helper class to handle attributes of the request scope. Use the request scope for thread save (i.e. request save) parameter handling.

Author:
Martin Haft

Method Summary
static java.util.Enumeration getAttributeNames()
           
static HttpServletRequest getCurrentRequest()
           
static GetParameters getGetParameters()
          Provides the GetParameters for the current request
static PostParameters getPostParameters()
          Provides the PostParameters for the current request
static java.lang.Object getRequestAttribute(java.lang.String key)
          Recieves objects from the current request.
static boolean isAjaxRequest()
           
static boolean isBypassRequest()
           
static boolean isGetRequest()
           
static boolean isPostRequest()
           
static void removeAttribute(java.lang.String key)
          Removes an attribute from the current request.
static void setAjaxRequest()
          marks the current request as ajax request
static void setBypassRequest()
          marks the current request as bypass
static void setRequestAttribute(java.lang.String key, java.lang.Object object)
          Stores objects at the current request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isPostRequest

public static boolean isPostRequest()
Returns:
true if the current request is a post request

isGetRequest

public static boolean isGetRequest()
Returns:
true if the current request is a get request

setBypassRequest

public static void setBypassRequest()
marks the current request as bypass


isBypassRequest

public static boolean isBypassRequest()
Returns:
true, if the current request is marked as bypass

isAjaxRequest

public static boolean isAjaxRequest()
Returns:
true, if the current request is marked as ajax request

setAjaxRequest

public static void setAjaxRequest()
marks the current request as ajax request


getPostParameters

public static PostParameters getPostParameters()
Provides the PostParameters for the current request

Returns:
PostParameters of the current request

getGetParameters

public static GetParameters getGetParameters()
Provides the GetParameters for the current request

Returns:
GetParameters of the current request

setRequestAttribute

public static void setRequestAttribute(java.lang.String key,
                                       java.lang.Object object)
Stores objects at the current request. This is to support thread save (i.e. "request save") implementations of the services.


getRequestAttribute

public static java.lang.Object getRequestAttribute(java.lang.String key)
Recieves objects from the current request. This is to support thread save (i.e. "request save") implementations of the services.


removeAttribute

public static void removeAttribute(java.lang.String key)
Removes an attribute from the current request.

Parameters:
key - the key of the attribute to remove

getAttributeNames

public static java.util.Enumeration getAttributeNames()
Returns:
all attribuet keys

getCurrentRequest

public static HttpServletRequest getCurrentRequest()
Returns:
the current request