|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.util.QueryParameterMap
public class QueryParameterMap
A wrapper around a Map that stores query parameter values. Map keys are strings. Map values can be simple strings or array of string (or null).
| Constructor Summary | |
|---|---|
QueryParameterMap()
|
|
QueryParameterMap(Map parameterMap)
Constructor around an existing Map whose keys and values are expected to conform expected use (keys are strings, values are null, string or string array). |
|
| Method Summary | |
|---|---|
String[] |
getParameterNames()
Returns the names of all parameters, sorted alphabetically. |
String |
getParameterValue(String name)
Gets a query parameter value. |
String[] |
getParameterValues(String name)
Returns the array of values for the specified parameter. |
void |
setParameterValue(String name,
String value)
Replaces the parameter value for the given name wit the new value (which may be null). |
void |
setParameterValues(String name,
String[] values)
Replaces the parameter value for the given name wit the new list of values (which may be empty or null). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryParameterMap()
public QueryParameterMap(Map parameterMap)
| Method Detail |
|---|
public void setParameterValue(String name,
String value)
public void setParameterValues(String name,
String[] values)
public String getParameterValue(String name)
public String[] getParameterValues(String name)
setParameterValue(String, String), then
the value is wrapped as a string array and returned.
public String[] getParameterNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||