Package com.iizix
Class URIParamsTokenizer
java.lang.Object
com.iizix.URIParamsTokenizer
A tokenizer class for the URI query string.
- Author:
- Christopher Mindus
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptiontokenizeQuery
(String query) Tokenizes the Query part of URI and returns a map of the parameters.tokenizeURI
(String uri) Tokenizes the URI and returns a map of the parameters in the query.
Constructor Details
URIParamsTokenizer
public URIParamsTokenizer()
Method Details
tokenizeQuery
Tokenizes the Query part of URI and returns a map of the parameters.- Parameters:
query
- The query string after the "?".- Returns:
- A new map of parameters. Parameter without equal sign are added with a null value.
- Throws:
UnsupportedEncodingException
- If the query string is not correctly UTF-8 encoded.
tokenizeURI
Tokenizes the URI and returns a map of the parameters in the query.- Parameters:
uri
- The URI string.- Returns:
- A new map of parameters. Parameter without equal sign are added with a null value.
- Throws:
UnsupportedEncodingException
- If the query string is not correctly UTF-8 encoded.