public final class CookieExtensions extends Object
| Constructor and Description |
|---|
CookieExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addCookie(javax.servlet.http.Cookie cookie)
Adds the given cookie.
|
static void |
clearCookie(javax.servlet.http.Cookie cookie)
Clears the given cookie.
|
static javax.servlet.http.Cookie |
getCookie(String name)
Gets the cookie form the given name.
|
static javax.servlet.http.Cookie |
newCookie(String name,
String value,
String purpose,
String domain,
int maxAge,
String path,
boolean secure)
Creates a new cookie.
|
public static void addCookie(javax.servlet.http.Cookie cookie)
cookie - the cookiepublic static void clearCookie(javax.servlet.http.Cookie cookie)
cookie - the cookie to clear.public static javax.servlet.http.Cookie getCookie(String name)
name - the namepublic static javax.servlet.http.Cookie newCookie(String name, String value, String purpose, String domain, int maxAge, String path, boolean secure)
name - the namevalue - the valuepurpose - the purposedomain - the domainmaxAge - the max agepath - the pathsecure - the secureCopyright © 2010–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.