|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jwall.web.audit.util.ParserUtils
public class ParserUtils
This class provides a set of static methods that are useful for parsing strings, messages et. al. It also encapsulates handling/parsing of mime-messages.
| Constructor Summary | |
|---|---|
ParserUtils()
|
|
| Method Summary | |
|---|---|
static String |
extractFormData(String contentType,
String content)
This method extracts multipart/form-data from a http-request-body. |
static String |
normalizePath(String path)
This method does a simple path-normalization. |
static Hashtable<String,String> |
parseQueryString(String qs)
Parses the QueryString and returns a hash of (param,value)-pairs. |
static String[] |
splitQuotedString(String input)
Splits a string which might contain quoted substrings. |
static String[] |
splitQuotedString(String input,
String pattern)
|
static String[] |
splitQuotedString(String input,
String quoteChar,
String pattern)
This method splits a possible quoted String into tokens, respecting the quotations. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParserUtils()
| Method Detail |
|---|
public static String[] splitQuotedString(String input)
splitQuotedString(input, ").
input - The string to split
public static String[] splitQuotedString(String input,
String pattern)
public static String[] splitQuotedString(String input,
String quoteChar,
String pattern)
input - A string, possibly containing quotes.
public static Hashtable<String,String> parseQueryString(String qs)
&, parameters and values
will be split using =.
A possible trailing string starting with # will be ignored.
qs - The query-string that will be parsed.
public static String extractFormData(String contentType,
String content)
throws Exception
contentType - The content-type.content - The content that is to be decoded.
Exceptionpublic static String normalizePath(String path)
path - The path that is to be normalized.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||