|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.transport.http.util.QueryStringParser
public class QueryStringParser
Parser for URL query strings.
Constructor Summary | |
---|---|
QueryStringParser(String queryString)
Construct a parser from the given URL query string. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryStringParser(String queryString)
queryString
- the query string, i.e. the part of the URL starting
after the '?' characterMethod Detail |
---|
public 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.
public String getValue()
next()
has been called
previously and the result of this call was true
. Otherwise the
result of this method is undefined.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |