Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
java.lang.Object | +----javax.servlet.http.HttpUtils
Method Summary | |
static StringBuffer | getRequestURL(HttpServletRequest req)
|
static Hashtable | parsePostData(int len,
ServletInputStream in)
|
static Hashtable | parseQueryString(String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Hashtable parseQueryString(String s)
A key can appear one or more times in the query string. Each time a key appears, its corresponding value is inserted into its string array in the hash table. (So keys that appear once in the query string have, in the hash table, a string array of length one as their value, keys that appear twice have a string array of length two, etc.)
When the keys and values are moved into the hashtable, any plus signs (+) are returned to spaces and characters sent in hexadecimal notation (%xx) are converted back to characters.
s
- query string to be parsed
public static Hashtable parsePostData(int len, ServletInputStream in)
len
- the length of the data in the input stream.
in
- the input stream
public static StringBuffer getRequestURL(HttpServletRequest req)
This method is useful for creating redirect messages and for reporting errors.
Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |