eu.larkc.core.pluginManager.remote.Servlet.Tomcat.servlet
Class UrlParameters

java.lang.Object
  extended by eu.larkc.core.pluginManager.remote.Servlet.Tomcat.servlet.UrlParameters

public class UrlParameters
extends java.lang.Object

Holds URL parameter.

Author:
Barry Bishop

Constructor Summary
UrlParameters(java.util.Map rawParameterMap)
          Constructor.
 
Method Summary
 java.lang.String getValue(java.lang.String key)
          Returns the first value mapped to key.
 java.lang.String[] getValues(java.lang.String key)
          Returns all values mapped to key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlParameters

public UrlParameters(java.util.Map rawParameterMap)
Constructor. Takes a map which holds the raw URL parameters and decodes them using the java.net.URLDecoder (utf-8 encoding). The decoded parameters are stored for later retrieval.

Parameters:
rawParameterMap - the raw parameter map
Method Detail

getValue

public java.lang.String getValue(java.lang.String key)
Returns the first value mapped to key.

Parameters:
key - key of the value to retrieve.
Returns:
first value mapped to key or null if no key/value pair matched the provided key.

getValues

public java.lang.String[] getValues(java.lang.String key)
Returns all values mapped to key.

Parameters:
key - key of the value to retrieve.
Returns:
all values mapped to key or null if no key/value pair matched the provided key.