|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.QueryParameters
public class QueryParameters
Utiltity class for parsing string values in the form of HTTP request query parameters:
key1=value1&key2=value2...
Field Summary | |
---|---|
private Map<String,List<String>> |
parameters
|
Constructor Summary | |
---|---|
private |
QueryParameters(String query)
|
Method Summary | |
---|---|
Set<String> |
getKeys()
Get all keys that are present in the query string. |
int |
getNumValues(String key)
Get the number of values for a key. |
String |
getValue(String key)
Get the (single) value for a key. |
List<String> |
getValues(String key)
Get all values for a key. |
static QueryParameters |
parseQueryString(String query)
Parses a string in HTTP query format ( key1=value1&key2=value2... |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Map<String,List<String>> parameters
Constructor Detail |
---|
private QueryParameters(String query)
Method Detail |
---|
public static QueryParameters parseQueryString(String query)
key1=value1&key2=value2...
)
and returns it as a QueryParameters object.
query
- The string to parse
QueryParameters
objectpublic String getValue(String key)
key
- The key
public List<String> getValues(String key)
public int getNumValues(String key)
key
- The key
public Set<String> getKeys()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |