|
|||||||||
| 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 java.lang.String |
extractFormData(java.lang.String contentType,
java.lang.String content)
This method extracts multipart/form-data from a http-request-body. |
static java.lang.String |
normalizePath(java.lang.String path)
This method does a simple path-normalization. |
static java.util.Hashtable<java.lang.String,java.lang.String> |
parseQueryString(java.lang.String qs)
Parses the QueryString and returns a hash of (param,value)-pairs. |
static java.lang.String[] |
splitQuotedString(java.lang.String input)
Splits a string which might contain quoted substrings. |
static java.lang.String[] |
splitQuotedString(java.lang.String input,
java.lang.String quoteChar)
This method splits a possible quoted String into tokens, respecting the quotations. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParserUtils()
| Method Detail |
|---|
public static java.lang.String[] splitQuotedString(java.lang.String input)
splitQuotedString(input, ").
input - The string to split
public static java.lang.String[] splitQuotedString(java.lang.String input,
java.lang.String quoteChar)
input - A string, possibly containing quotes.
public static java.util.Hashtable<java.lang.String,java.lang.String> parseQueryString(java.lang.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 java.lang.String extractFormData(java.lang.String contentType,
java.lang.String content)
throws java.lang.Exception
contentType - The content-type.content - The content that is to be decoded.
java.lang.Exceptionpublic static java.lang.String normalizePath(java.lang.String path)
path -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||