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

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

public class GetParameters
extends java.lang.Object

Simple helper class to collect get parameters for a request and add them as parameters to a url. Here it is used to add the dialog identifying parameters (dialog id and dialog instance id) to the get parameters of a url as well as for bookmarking parameters.


Constructor Summary
protected GetParameters()
          Protected Constructor.
 
Method Summary
 java.lang.String addGetParametersToURL(java.lang.String url)
          Adds all get parameters of this to the given url
 java.lang.Object getGetParameter(java.lang.String key)
           
 java.util.Map getGetParameterMap()
           
 void putGetParameter(java.lang.String key, java.lang.String value)
          Add a new get parameter or change an existing.
 void putGetParameters(java.util.Properties properties)
          The properties are added to the get parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetParameters

protected GetParameters()
Protected Constructor. GetParameters are added to every request and can be obtained from a RequestDataService.

Method Detail

getGetParameterMap

public java.util.Map getGetParameterMap()
Returns:
the HashMap with collected the get parameter

getGetParameter

public java.lang.Object getGetParameter(java.lang.String key)
Parameters:
key - the key for a get parameter
Returns:
the value of the get parameter

putGetParameter

public void putGetParameter(java.lang.String key,
                            java.lang.String value)
Add a new get parameter or change an existing.

Parameters:
key - the key for a get parameter
value - the new value for the get parameter

putGetParameters

public void putGetParameters(java.util.Properties properties)
The properties are added to the get parameters. Note: if a property value is not a string we use the toString method to determin the get parameter value.

Parameters:
properties - the Properties to be added

addGetParametersToURL

public java.lang.String addGetParametersToURL(java.lang.String url)
Adds all get parameters of this to the given url

Parameters:
url - the url to be supplemented by the get parameters
Returns:
the supplemented url