|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ramapuram.thomas.webapp.util.RequestUtil
public final class RequestUtil
Convenience class for setting and retrieving cookies.
| Method Summary | |
|---|---|
static void |
deleteCookie(javax.servlet.http.HttpServletResponse response,
javax.servlet.http.Cookie cookie,
java.lang.String path)
Convenience method for deleting a cookie by name |
static java.lang.String |
getAppURL(javax.servlet.http.HttpServletRequest request)
Convenience method to get the application's URL based on request variables. |
static javax.servlet.http.Cookie |
getCookie(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
Convenience method to get a cookie by name |
static void |
setCookie(javax.servlet.http.HttpServletResponse response,
java.lang.String name,
java.lang.String value,
java.lang.String path)
Convenience method to set a cookie |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void setCookie(javax.servlet.http.HttpServletResponse response,
java.lang.String name,
java.lang.String value,
java.lang.String path)
response - the current responsename - the name of the cookievalue - the value of the cookiepath - the path to set it on
public static javax.servlet.http.Cookie getCookie(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
request - the current requestname - the name of the cookie to find
public static void deleteCookie(javax.servlet.http.HttpServletResponse response,
javax.servlet.http.Cookie cookie,
java.lang.String path)
response - the current web responsecookie - the cookie to deletepath - the path on which the cookie was set (i.e. /appfuse)public static java.lang.String getAppURL(javax.servlet.http.HttpServletRequest request)
request - the current request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||