|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.appfuse.webapp.util.RequestUtil
public class RequestUtil
Convenience class for setting and retrieving cookies.
| Constructor Summary | |
|---|---|
RequestUtil()
|
|
| Method Summary | |
|---|---|
static void |
deleteCookie(HttpServletResponse response,
Cookie cookie,
String path)
Convenience method for deleting a cookie by name |
static String |
getAppURL(HttpServletRequest request)
Convenience method to get the application's URL based on request variables. |
static Cookie |
getCookie(HttpServletRequest request,
String name)
Convenience method to get a cookie by name |
static void |
setCookie(HttpServletResponse response,
String name,
String value,
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 |
| Constructor Detail |
|---|
public RequestUtil()
| Method Detail |
|---|
public static void setCookie(HttpServletResponse response,
String name,
String value,
String path)
response - name - value - path -
public static Cookie getCookie(HttpServletRequest request,
String name)
request - the current requestname - the name of the cookie to find
public static void deleteCookie(HttpServletResponse response,
Cookie cookie,
String path)
response - the current web responsecookie - the cookie to deletepath - the path on which the cookie was set (i.e. /appfuse)public static String getAppURL(HttpServletRequest request)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||