java.lang.Object
com.tripi.asp.util.ParseQueryString
- public class ParseQueryString
- extends java.lang.Object
This class implements parsing for query string variables.
- Version:
- 0.9
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBG
private static final org.apache.log4j.Category DBG
- Debugging category
tokenizerPattern
protected static final Pattern tokenizerPattern
- Pattern used to tokenize the list
variablesPattern
protected static final Pattern variablesPattern
- Pattern used to find arguments/variables
ParseQueryString
public ParseQueryString()
parse
public static java.util.Map parse(java.lang.String queryString)
- Function to perform a parse on a query string. This function returns a map
containing String keys which are the variable names, and Set values
containing the values for the string.
parse
public static java.util.Map parse(java.io.Reader reader,
int length)
throws java.io.IOException
- Function to perform a parse on a query string. This function returns a map
containing String keys which are the variable names, and Set values
containing the values for the string.