public final class Cookies extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Cookies.Key |
| Modifier and Type | Method and Description |
|---|---|
static javax.servlet.http.Cookie |
copyOf(javax.servlet.http.Cookie cookie)
Make a copy of the passed cookie.
|
static boolean |
isEqual(javax.servlet.http.Cookie c1,
javax.servlet.http.Cookie c2)
Checks whether two cookies are equal.
|
static boolean |
isExpired(javax.servlet.http.Cookie cookie)
detect if this cookie is expired
|
static Cookies.Key |
keyOf(javax.servlet.http.Cookie cookie)
creates a key based on the property for cookie equality
|
public static javax.servlet.http.Cookie copyOf(javax.servlet.http.Cookie cookie)
cookie - The cookie to copynull if the argument is null.public static Cookies.Key keyOf(javax.servlet.http.Cookie cookie)
cookie - cookiepublic static boolean isEqual(javax.servlet.http.Cookie c1,
javax.servlet.http.Cookie c2)
c1 - the first cookiec2 - the second cookietrue only if the cookies have the same name, path and domainpublic static boolean isExpired(javax.servlet.http.Cookie cookie)
cookie - Copyright © 2006–2014 Apache Software Foundation. All rights reserved.