public final class JsfCookieUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static javax.servlet.http.Cookie |
getCookie(String cookieName)
Gets a cookie from the current request.
|
static void |
putCookie(String cookieName,
javax.servlet.http.Cookie cookie)
Puts a cookie in the current response.
|
public static javax.servlet.http.Cookie getCookie(String cookieName)
cookieName - The name of the cookie.NullPointerException - When the supplied cookieName is null.IllegalArgumentException - When the supplied cookieName is empty.public static void putCookie(String cookieName, javax.servlet.http.Cookie cookie)
cookieName - The name of the cookie.cookie - The cookie to put in the current response.NullPointerException - When the supplied cookie is null.Copyright © 2008–2018. All rights reserved.