|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.jwebkit.RequestUtil
public final class RequestUtil
Miscellaneous request utilities.
| Method Summary | |
|---|---|
static java.lang.String |
getQueryString(javax.servlet.http.HttpServletRequest req)
Get the QUERY_STRING that can be used to reconstruct the current request. |
static java.lang.String |
getRelativeUri(javax.servlet.http.HttpServletRequest req,
java.lang.String uri)
Get a relative URI inside the current web app. |
static java.util.Map<java.lang.String,java.lang.String[]> |
parseQueryString(java.lang.String s,
java.lang.String charset)
Parse the given query string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String getRelativeUri(javax.servlet.http.HttpServletRequest req,
java.lang.String uri)
req - a servlet requesturi - A uri (beginning with /) within the webapp
public static java.lang.String getQueryString(javax.servlet.http.HttpServletRequest req)
req - the request object
public static java.util.Map<java.lang.String,java.lang.String[]> parseQueryString(java.lang.String s,
java.lang.String charset)
s - the string to parsecharset - the character set in which to parse the string
java.lang.IllegalArgumentException - if the input doesn't make for
a valid query string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||