public class QueryStringParser extends Object
| Constructor and Description |
|---|
QueryStringParser(String queryString)
Construct a parser from the given URL query string.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Get the name of the current parameter.
|
String |
getValue()
Get the value of the current parameter.
|
boolean |
next()
Move to the next parameter in the query string.
|
boolean |
search(Collection<String> names)
Search for a parameter with a name in a given collection.
|
public QueryStringParser(String queryString)
queryString - the query string, i.e. the part of the URL starting
after the '?' characterpublic boolean next()
true if a parameter has been found;
false if there are no more parameterspublic boolean search(Collection<String> names)
names - public String getName()
next() has been called
previously and the result of this call was true. Otherwise the
result of this method is undefined.Copyright © The Apache Software Foundation. All Rights Reserved.