Package com.iizix
Class URIParamsTokenizer
java.lang.Object
com.iizix.URIParamsTokenizer
A tokenizer class for the URI query string.
- Author:
- Christopher Mindus
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- tokenizeQuery- (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- URIParamsTokenizerpublic URIParamsTokenizer()
 
- Method Details- tokenizeQueryTokenizes 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.
 
- tokenizeURITokenizes 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.