org.makumba.commons.attributes
Class HttpParameters
java.lang.Object
org.makumba.commons.attributes.HttpParameters
- Direct Known Subclasses:
- MultipartHttpParameters
public class HttpParameters
- extends Object
Helper class to work with http parameters
- Version:
- $Id: HttpParameters.java 1402 2007-07-25 11:52:28Z manuel_gay $
- Author:
- Cristian Bogdan, Rudolf Mayer, Manuel Gay
request
HttpServletRequest request
atStart
Hashtable<Object,Object> atStart
reloadedParameters
Map<Object,Object> reloadedParameters
HttpParameters
public HttpParameters(HttpServletRequest req)
HttpParameters
public HttpParameters(HttpServletRequest req,
Map<Object,Object> additionalParams)
knownAtStart
public boolean knownAtStart(String s)
computeAtStart
void computeAtStart()
getParameter
public Object getParameter(String s)
- Gets a http parameter. If there are more values for the parameter, places them into a Vector
- Parameters:
s
- the name of the parameter
- Returns:
- A String containing the value of the parameter in case of a unique value, a Vector otherwise
getParametersStartingWith
public ArrayList<String> getParametersStartingWith(String s)
toString
public String toString()
- Overrides:
toString
in class Object