Package org.attribyte.snook
Class Cookies.CookieKey
java.lang.Object
org.attribyte.snook.Cookies.CookieKey
- Enclosing class:
Cookies
A key that uniquely identifies a cookie.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
The cookie name. -
domain
The domain. -
path
The path.
-
-
Constructor Details
-
CookieKey
public CookieKey(jakarta.servlet.http.Cookie cookie) Creates a cookie key from an existing cookie.- Parameters:
cookie- The cookie.
-
CookieKey
Creates a key.- Parameters:
name- The cookie name. Must not benullor empty.domain- The domain.path- The path.- Throws:
IllegalArgumentException- if name is null or empty.
-
CookieKey
Creates a key that applies to any path for the current domain.- Parameters:
name- The cookie name.
-
-
Method Details