|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjp.terasoluna.fw.web.RequestUtil
public class RequestUtil
Utility class related to the Request.
| Constructor Summary | |
|---|---|
RequestUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
deleteUrlParam(java.lang.String url,
java.lang.String key)
When the parameter of argument key is present in argument url, delete that parameter and return the argument url. Example:Before deletion:test.do?no=2&r=8331352040140757427&no=1 After deletion:test.do?no=2&no=1 |
static java.lang.String |
dumpRequest(javax.servlet.http.HttpServletRequest req)
Dumps the parameters of "request" and attributes of "request". |
static java.lang.String |
dumpRequestAttributes(javax.servlet.http.HttpServletRequest req)
Dumps the attributes of "request". |
static java.lang.String |
dumpRequestParameters(javax.servlet.http.HttpServletRequest req)
Dumps the parameters of"request". |
static java.lang.String |
getPathInfo(javax.servlet.ServletRequest request)
From the ServletRequest class instance, fetch the URIpathInfo after context path.
Please note that "pathInfo" referred here differs from the usual extended path information. |
static javax.servlet.ServletContext |
getServletContext(javax.servlet.http.HttpServletRequest request)
Fetches servlet context. |
static java.lang.String |
getSessionHash(javax.servlet.http.HttpServletRequest req)
Fetches hash value of HTTP session ID. |
static boolean |
isChanged(javax.servlet.ServletRequest request)
Checks the path to decide whether it has been navigated to other module. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestUtil()
| Method Detail |
|---|
public static java.lang.String getPathInfo(javax.servlet.ServletRequest request)
ServletRequest class instance, fetch the URIpathInfo after context path.
Please note that the "pathInfo" referred here differs from the usual extended path information.
request - ServletRequest class instance which is used to derive the pathInfo.
public static javax.servlet.ServletContext getServletContext(javax.servlet.http.HttpServletRequest request)
request - Request information
public static boolean isChanged(javax.servlet.ServletRequest request)
request - Request
true when it has been navigated to the other module.
true when null is passed to the "request"argument.public static java.lang.String getSessionHash(javax.servlet.http.HttpServletRequest req)
req - HTTP request
public static java.lang.String dumpRequest(javax.servlet.http.HttpServletRequest req)
req - HTTP Request
public static java.lang.String dumpRequestAttributes(javax.servlet.http.HttpServletRequest req)
req - HTTP request
public static java.lang.String dumpRequestParameters(javax.servlet.http.HttpServletRequest req)
req - HTTP request
public static java.lang.String deleteUrlParam(java.lang.String url,
java.lang.String key)
url - URL used for deletionkey - String which is the key to be deleted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||