|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ora.jsp.util.CookieUtils
This class contains a number of static methods that can be used to work with javax.servlet.Cookie objects.
Constructor Summary | |
CookieUtils()
|
Method Summary | |
static java.lang.String |
getCookieValue(java.lang.String name,
javax.servlet.http.HttpServletRequest req)
Returns the value of the Cookie with the specified name, or null if not found. |
static boolean |
isCookieSet(java.lang.String name,
javax.servlet.http.HttpServletRequest req)
Returns true if a cookie with the specified name is present in the request. |
static void |
sendCookie(java.lang.String name,
java.lang.String value,
int maxAge,
javax.servlet.http.HttpServletResponse res)
Creates a Cookie with the specified name, value and max age, and adds it to the response. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CookieUtils()
Method Detail |
public static java.lang.String getCookieValue(java.lang.String name, javax.servlet.http.HttpServletRequest req)
public static void sendCookie(java.lang.String name, java.lang.String value, int maxAge, javax.servlet.http.HttpServletResponse res)
public static boolean isCookieSet(java.lang.String name, javax.servlet.http.HttpServletRequest req)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |