public interface HttpSetCookie extends HttpCookiePair
Modifier and Type | Method and Description |
---|---|
java.lang.CharSequence |
domain()
Returns the domain of this
HttpSetCookie . |
java.lang.CharSequence |
expires()
Returns the expire date of this
HttpSetCookie according
to Expires. |
boolean |
isHttpOnly()
Checks to see if this
HttpSetCookie can only be accessed via HTTP. |
boolean |
isSecure()
Checks to see if this
HttpSetCookie is secure. |
java.lang.Long |
maxAge()
Returns the maximum age of this
HttpSetCookie in seconds if specified. |
java.lang.CharSequence |
path()
Returns the path of this
HttpSetCookie . |
encoded, isWrapped, name, value
@Nullable java.lang.CharSequence domain()
HttpSetCookie
.HttpSetCookie
@Nullable java.lang.CharSequence path()
HttpSetCookie
.HttpSetCookie
's path@Nullable java.lang.Long maxAge()
HttpSetCookie
in seconds if specified.HttpSetCookie
. null
if none specified.@Nullable java.lang.CharSequence expires()
HttpSetCookie
according
to Expires.HttpSetCookie
according
to Expires.boolean isSecure()
HttpSetCookie
is secure.HttpSetCookie
is secure, otherwise falseboolean isHttpOnly()
HttpSetCookie
can only be accessed via HTTP.
If this returns true, the HttpSetCookie
cannot be accessed through
client side script - But only if the browser supports it.
For more information, please look hereHttpSetCookie
is HTTP-only or false if it isn't