|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
RememberMeService code
public interface CookieHandler
Handles basic cookie tasks
| Method Summary | |
|---|---|
javax.servlet.http.Cookie |
getCookie(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
Deprecated. Returns the specified Cookie object, or null if the cookie does not exist. |
java.lang.String |
getCookieValue(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
Deprecated. Returns the value of the specified cookie as a String. |
void |
invalidateCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String cookieName,
java.lang.String path)
Deprecated. Invalidate the specified cookie and delete it from the response object. |
javax.servlet.http.Cookie |
setCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String name,
java.lang.String value,
int maxAge,
java.lang.String path)
Deprecated. Sets a cookie This will also put the cookie in a list of cookies to send with this request's response (so that in case of a redirect occurring down the chain, the first filter will always try to set this cookie again) The cookie secure flag is set if the request is secure. |
| Method Detail |
|---|
void invalidateCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String cookieName,
java.lang.String path)
response - The HttpServletResponse object, known as "response" in a JSP page.cookieName - The name of the cookie you want to delete.path - of the path the cookie you want to delete.
javax.servlet.http.Cookie getCookie(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
request - The HttpServletRequest object, known as "request" in a
JSP page.name - the name of the cookie.
javax.servlet.http.Cookie setCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String name,
java.lang.String value,
int maxAge,
java.lang.String path)
java.lang.String getCookieValue(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
request - the HttpServletRequest object, known as "request" in a
JSP page.name - the name of the cookie
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||