Class QueryStringParser
java.lang.Object
org.apache.axis2.kernel.http.util.QueryStringParser
Parser for URL query strings.
-
Constructor Summary
ConstructorsConstructorDescriptionQueryStringParser(String queryString) Construct a parser from the given URL query string. -
Method Summary
-
Constructor Details
-
QueryStringParser
Construct a parser from the given URL query string.- Parameters:
queryString- the query string, i.e. the part of the URL starting after the '?' character
-
-
Method Details
-
next
public boolean next()Move to the next parameter in the query string.- Returns:
trueif a parameter has been found;falseif there are no more parameters
-
search
Search for a parameter with a name in a given collection. This method iterates over the parameters until a parameter with a matching name has been found. Note that the current parameter is not considered.- Parameters:
names-- Returns:
-
getName
Get the name of the current parameter. Calling this method is only allowed ifnext()has been called previously and the result of this call wastrue. Otherwise the result of this method is undefined.- Returns:
- the name of the current parameter
-
getValue
Get the value of the current parameter. Calling this method is only allowed ifnext()has been called previously and the result of this call wastrue. Otherwise the result of this method is undefined.- Returns:
- the decoded value of the current parameter
-