HttpSetCookie.
| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final @Nullable CharSequence | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private final @Nullable CharSequence | |
| private final boolean | |
| private final @Nullable Long | |
| private final CharSequence | |
| private final @Nullable CharSequence | |
| private final @Nullable HttpSetCookie. | |
| private final boolean | |
| private final CharSequence | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | DefaultHttpSetCookie(final CharSequence
the cookie-name. name, final CharSequence the cookie-value. value)Create a new not wrapped, not secure and not HTTP-only |
| public | DefaultHttpSetCookie(final CharSequence
the cookie-name. name, final CharSequence the cookie-value. value, final boolean true if the value should be wrapped in DQUOTE as described in
cookie-value.the secure-av. secure, final boolean the httponly-av (see
HTTP-only). httpOnly)Create a new |
| public | DefaultHttpSetCookie(final CharSequence
the cookie-name. name, final CharSequence the cookie-value. value, final @Nullable CharSequence the path-value. path, final @Nullable CharSequence the domain-value. domain, final @Nullable CharSequence the expires-av.
Represented as an RFC-1123 date defined in
RFC-2616, Section 3.3.1. expires, final @Nullable Long the max-age-av. maxAge, final @Nullable HttpSetCookie.the
SameSite attribute. sameSite,true if the value should be wrapped in DQUOTE as described in
cookie-value.the secure-av. secure, final boolean the httponly-av (see
HTTP-only). httpOnly)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public @Nullable CharSequence | domain()
Implements io. HttpSetCookie.
|
| public CharSequence | encoded()
Implements io. HttpCookiePair.
|
| public boolean | equals(final Object
the reference object with which to compare. o)Overrides java. |
| private static boolean | |
| public @Nullable CharSequence | expires()
Implements io. HttpSetCookie according
to Expires.
|
| private static @Nullable HttpSetCookie. | |
| public int | |
| public boolean | isHttpOnly()
Implements io. HttpSetCookie can only be accessed via HTTP.
|
| public boolean | isSecure()
Implements io. HttpSetCookie is secure.
|
| public boolean | isWrapped()
Implements io. true if the value should be wrapped in DQUOTE as described in
cookie-value.
|
| public @Nullable Long | maxAge()
Implements io. HttpSetCookie in seconds if specified.
|
| public CharSequence | name()
Implements io. HttpCookiePair.
|
| pack-priv static HttpSetCookie | parseSetCookie(final CharSequence setCookieString, boolean validateContent, @Nullable CharSequence name, int i)
|
| public static HttpSetCookie | parseSetCookie(final CharSequence
The set-cookie-string
value. setCookieString, boolean true to make a best effort to validate the contents of the SetCookie.Parse a |
| private static DefaultHttpSetCookie. | |
| public @Nullable CharSequence | path()
Implements io. HttpSetCookie.
|
| public @Nullable HttpSetCookie. | sameSite()
Implements io. |
| public String | |
| private static @NotNull IllegalArgumentException | |
| private static void | validateCookieAttributeValue(final int
The decimal representation of the hexadecimal value. hexValue, int The index of the character in the inputs, for error reporting. index)Attribute values are any CHAR except CTLs or ";", and CTLs are %x00 to %x1F, and %x7F. |
| private static void | validateCookieOctetHexValue(final int
The decimal representation of the hexadecimal value. hexValue, int The index of the character in the inputs, for error reporting. index) |
| public CharSequence | value()
Implements io. HttpCookiePair.
|
| domain | back to summary |
|---|---|
| private final @Nullable CharSequence domain
| |
| ENCODED_LABEL_DOMAIN | back to summary |
|---|---|
| private static final String ENCODED_LABEL_DOMAIN | |
| ENCODED_LABEL_EXPIRES | back to summary |
|---|---|
| private static final String ENCODED_LABEL_EXPIRES | |
| ENCODED_LABEL_HTTP_ONLY | back to summary |
|---|---|
| private static final String ENCODED_LABEL_HTTP_ONLY | |
| ENCODED_LABEL_MAX_AGE | back to summary |
|---|---|
| private static final String ENCODED_LABEL_MAX_AGE | |
| ENCODED_LABEL_PATH | back to summary |
|---|---|
| private static final String ENCODED_LABEL_PATH | |
| ENCODED_LABEL_SAMESITE | back to summary |
|---|---|
| private static final String ENCODED_LABEL_SAMESITE | |
| ENCODED_LABEL_SECURE | back to summary |
|---|---|
| private static final String ENCODED_LABEL_SECURE | |
| expires | back to summary |
|---|---|
| private final @Nullable CharSequence expires
| |
| httpOnly | back to summary |
|---|---|
| private final boolean httpOnly | |
| maxAge | back to summary |
|---|---|
| private final @Nullable Long maxAge
| |
| name | back to summary |
|---|---|
| private final CharSequence name | |
| path | back to summary |
|---|---|
| private final @Nullable CharSequence path
| |
| sameSite | back to summary |
|---|---|
| private final @Nullable HttpSetCookie. | |
| secure | back to summary |
|---|---|
| private final boolean secure | |
| value | back to summary |
|---|---|
| private final CharSequence value | |
| wrapped | back to summary |
|---|---|
| private final boolean wrapped | |
| DefaultHttpSetCookie | back to summary |
|---|---|
| public DefaultHttpSetCookie(final CharSequence name, final CharSequence value) Create a new not wrapped, not secure and not HTTP-only
| |
| DefaultHttpSetCookie | back to summary |
|---|---|
| public DefaultHttpSetCookie(final CharSequence name, final CharSequence value, final boolean wrapped, final boolean secure, final boolean httpOnly) Create a new
| |
| DefaultHttpSetCookie | back to summary |
|---|---|
| public DefaultHttpSetCookie(final CharSequence name, final CharSequence value, final @Nullable CharSequence path, final @Nullable CharSequence domain, final @Nullable CharSequence expires, final @Nullable Long maxAge, final @Nullable HttpSetCookie. Creates a new
| |
| domain | back to summary |
|---|---|
| public @Nullable CharSequence domain() Implements io. Doc from io. Returns the domain of this
| |
| encoded | back to summary |
|---|---|
| public CharSequence encoded() Implements io. Doc from io. Get the encoded value of this
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| equalsIgnoreCaseLower | back to summary |
|---|---|
| private static boolean equalsIgnoreCaseLower(char c, char k) | |
| expires | back to summary |
|---|---|
| public @Nullable CharSequence expires() Implements io. Doc from io. Returns the expire date of this
| |
| fromSequence | back to summary |
|---|---|
private static @Nullable HttpSetCookie.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isHttpOnly | back to summary |
|---|---|
| public boolean isHttpOnly() Implements io. Doc from io. Checks to see if this
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Implements io. Doc from io. Checks to see if this
| |
| isWrapped | back to summary |
|---|---|
| public boolean isWrapped() Implements io. Doc from io. Returns
| |
| maxAge | back to summary |
|---|---|
| public @Nullable Long maxAge() Implements io. Doc from io. Returns the maximum age of this
| |
| name | back to summary |
|---|---|
| public CharSequence name() Implements io. Doc from io. Returns the name of this
| |
| parseSetCookie | back to summary |
|---|---|
| pack-priv static HttpSetCookie parseSetCookie(final CharSequence setCookieString, boolean validateContent, @Nullable CharSequence name, int i) | |
| parseSetCookie | back to summary |
|---|---|
| public static HttpSetCookie parseSetCookie(final CharSequence setCookieString, boolean validateContent) Parse a
| |
| parseStateOf | back to summary |
|---|---|
| private static DefaultHttpSetCookie. | |
| path | back to summary |
|---|---|
| public @Nullable CharSequence path() Implements io. Doc from io. Returns the path of this
| |
| sameSite | back to summary |
|---|---|
| public @Nullable HttpSetCookie. Implements io. Doc from io. Get the value for the SameSite attribute.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| unexpectedHexValue | back to summary |
|---|---|
private static @NotNull IllegalArgumentException unexpectedHexValue(int hexValue, int index)
| |
| validateCookieAttributeValue | back to summary |
|---|---|
| private static void validateCookieAttributeValue(final int hexValue, int index) Attribute values are any CHAR except CTLs or ";", and CTLs are %x00 to %x1F, and %x7F.
| |
| validateCookieOctetHexValue | back to summary |
|---|---|
| private static void validateCookieOctetHexValue(final int hexValue, int index) cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
| |
| value | back to summary |
|---|---|
| public CharSequence value() Implements io. Doc from io. Returns the value of this
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final DefaultHttpSetCookie. | |
| public static final DefaultHttpSetCookie. | |
| public static final DefaultHttpSetCookie. | |
| public static final DefaultHttpSetCookie. | |
| public static final DefaultHttpSetCookie. | |
| public static final DefaultHttpSetCookie. | |
| public static final DefaultHttpSetCookie. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static DefaultHttpSetCookie. | |
| public static DefaultHttpSetCookie. |
| ParsingDomain | back to summary |
|---|---|
| public static final DefaultHttpSetCookie. | |
| ParsingExpires | back to summary |
|---|---|
| public static final DefaultHttpSetCookie. | |
| ParsingMaxAge | back to summary |
|---|---|
| public static final DefaultHttpSetCookie. | |
| ParsingPath | back to summary |
|---|---|
| public static final DefaultHttpSetCookie. | |
| ParsingSameSite | back to summary |
|---|---|
| public static final DefaultHttpSetCookie. | |
| ParsingValue | back to summary |
|---|---|
| public static final DefaultHttpSetCookie. | |
| Unknown | back to summary |
|---|---|
| public static final DefaultHttpSetCookie. | |
| ParseState | back to summary |
|---|---|
| private ParseState() | |
| valueOf | back to summary |
|---|---|
| public static DefaultHttpSetCookie. | |
| values | back to summary |
|---|---|
| public static DefaultHttpSetCookie. | |