Package org.attribyte.api.http
Class Cookie
java.lang.Object
org.attribyte.api.http.Cookie
An immutable HTTP cookie.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
The name. -
value
The value. -
domain
The domain. -
path
The path. -
maxAgeSeconds
public final int maxAgeSecondsThe maximum age in seconds. -
secure
public final boolean secureIs this cookie sent only if connection is secure? -
httpOnly
public final boolean httpOnlyIs this an http-only cookie?
-
-
Constructor Details
-
Cookie
public Cookie(String name, String value, String domain, String path, int maxAgeSeconds, boolean secure, boolean httpOnly) Creates a response cookie.- Parameters:
name- The name.value- The value.domain- The domain.path- The path.maxAgeSeconds- The maximum age in seconds.secure- Is the cookie sent only if connection is secure?httpOnly- Is the cookie available only through HTTP?
-
-
Method Details