Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.tripi.asp.util
Class ParseQueryString  view ParseQueryString download ParseQueryString.java

java.lang.Object
  extended bycom.tripi.asp.util.ParseQueryString

public class ParseQueryString
extends java.lang.Object

This class implements parsing for query string variables.

Version:
0.9

Field Summary
private static org.apache.log4j.Category DBG
          Debugging category
protected static Pattern tokenizerPattern
          Pattern used to tokenize the list
protected static Pattern variablesPattern
          Pattern used to find arguments/variables
 
Constructor Summary
ParseQueryString()
           
 
Method Summary
static java.util.Map parse(java.io.Reader reader, int length)
          Function to perform a parse on a query string.
static java.util.Map parse(java.lang.String queryString)
          Function to perform a parse on a query string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

ParseQueryString

public ParseQueryString()
Method Detail

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.