public final class HttpOnlyCookies
extends java.lang.Object
Cookies and adds them to HttpServletResponses.
The cookie encoding logic in ServerCookie is derived from Tomcat 6.0.29.| Modifier and Type | Method and Description |
|---|---|
static void |
addHttpOnlyCookie(javax.servlet.http.HttpServletResponse response,
javax.servlet.http.Cookie cookie)
Adds the specified
Cookie to the specified HttpServletResponse with the HttpOnly flag. |
static void |
addHttpOnlyCookies(javax.servlet.http.HttpServletResponse response,
javax.servlet.http.Cookie[] cookies)
Adds the specified
Cookies to the specified HttpServletResponse with the HttpOnly flag. |
public static void addHttpOnlyCookies(javax.servlet.http.HttpServletResponse response,
javax.servlet.http.Cookie[] cookies)
Cookies to the specified HttpServletResponse with the HttpOnly flag.
Cookies marked as HTTP-only will not be available to JavaScript code executing in browsers that support
the flag; only the browser itself can access them.response - the response to add tocookies - the cookies to addpublic static void addHttpOnlyCookie(javax.servlet.http.HttpServletResponse response,
javax.servlet.http.Cookie cookie)
Cookie to the specified HttpServletResponse with the HttpOnly flag.
Cookies marked as HTTP-only will not be available to JavaScript code executing in browsers that support
the flag; only the browser itself can access them.response - the response to add tocookie - the cookie to addCopyright © 2013 Atlassian. All Rights Reserved.