Class HttpCookie
java.lang.Object
org.apache.pekko.http.javadsl.model.headers.HttpCookie
- Direct Known Subclasses:
HttpCookie
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpCookiestatic HttpCookiestatic HttpCookiecreate(String name, String value, Optional<DateTime> expires, OptionalLong maxAge, Optional<String> domain, Optional<String> path, boolean secure, boolean httpOnly, Optional<String> extension, Optional<SameSite> sameSite) abstract OptionalLonggetPath()abstract booleanhttpOnly()abstract Stringname()abstract HttpCookiePairpair()abstract booleansecure()abstract Stringvalue()abstract HttpCookiewithDomain(String domain) Returns a copy of this HttpCookie instance with the given domain set.abstract HttpCookiewithExpires(DateTime dateTime) Returns a copy of this HttpCookie instance with the given expiration set.abstract HttpCookiewithExtension(String extension) Returns a copy of this HttpCookie instance with the given extension set.abstract HttpCookiewithHttpOnly(boolean httpOnly) Returns a copy of this HttpCookie instance with the given http-only flag set.abstract HttpCookiewithMaxAge(long maxAge) Returns a copy of this HttpCookie instance with the given max age set.abstract HttpCookieReturns a copy of this HttpCookie instance with the given path set.abstract HttpCookiewithSameSite(Optional<SameSite> sameSite) Returns a copy of this HttpCookie instance with the given OptionalSameSiteset.abstract HttpCookiewithSameSite(SameSite sameSite) Returns a copy of this HttpCookie instance with the givenSameSiteset.abstract HttpCookiewithSecure(boolean secure) Returns a copy of this HttpCookie instance with the given secure flag set.
-
Constructor Details
-
HttpCookie
public HttpCookie()
-
-
Method Details
-
name
-
value
-
pair
-
getExpires
-
getMaxAge
-
getDomain
-
getPath
-
secure
public abstract boolean secure() -
httpOnly
public abstract boolean httpOnly() -
getExtension
-
getSameSite
-
create
-
create
-
create
-
withExpires
Returns a copy of this HttpCookie instance with the given expiration set. -
withMaxAge
Returns a copy of this HttpCookie instance with the given max age set. -
withDomain
Returns a copy of this HttpCookie instance with the given domain set. -
withPath
Returns a copy of this HttpCookie instance with the given path set. -
withSecure
Returns a copy of this HttpCookie instance with the given secure flag set. -
withHttpOnly
Returns a copy of this HttpCookie instance with the given http-only flag set. -
withSameSite
Returns a copy of this HttpCookie instance with the givenSameSiteset. -
withSameSite
Returns a copy of this HttpCookie instance with the given OptionalSameSiteset. -
withExtension
Returns a copy of this HttpCookie instance with the given extension set.
-