| Modifier and Type | Field and Description |
|---|---|
| public static final int | DEFAULT_VERSION
Cookies using the default version correspond to RFC 2109. |
| private final String | |
| private static final RuntimeDelegate. | |
| private final String | |
| private final String | |
| private final String | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | Cookie(final String
the name of the cookie. name, final String the value of the cookie. value, final String the URI path for which the cookie is valid. path, final String the host domain for which the cookie is valid. domain, final int the version of the specification to which the cookie complies. version)Create a new instance. |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true, if the object is a Cookie with the same
value for all properties, false otherwise.the object to compare to. obj)Overrides java. |
| public String | |
| public String | |
| public String | |
| public String | |
| public int | |
| public int | Returns: the cookie hash code.Overrides java. |
| public String | Returns: a stringified cookie.Overrides java. |
| public static Cookie |
| DEFAULT_VERSION | back to summary |
|---|---|
| public static final int DEFAULT_VERSION Cookies using the default version correspond to RFC 2109. | |
| domain | back to summary |
|---|---|
| private final String domain | |
| HEADER_DELEGATE | back to summary |
|---|---|
| private static final RuntimeDelegate. | |
| name | back to summary |
|---|---|
| private final String name | |
| path | back to summary |
|---|---|
| private final String path | |
| value | back to summary |
|---|---|
| private final String value | |
| version | back to summary |
|---|---|
| private final int version | |
| Cookie | back to summary |
|---|---|
| public Cookie(final String name, final String value, final String path, final String domain, final int version) throws IllegalArgumentException Create a new instance.
| |
| Cookie | back to summary |
|---|---|
| public Cookie(final String name, final String value, final String path, final String domain) throws IllegalArgumentException Create a new instance.
| |
| Cookie | back to summary |
|---|---|
| public Cookie(final String name, final String value) throws IllegalArgumentException Create a new instance.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Compare for equality.
| |
| getDomain | back to summary |
|---|---|
| public String getDomain() Get the domain of the cookie.
| |
| getName | back to summary |
|---|---|
| public String getName() Get the name of the cookie.
| |
| getPath | back to summary |
|---|---|
| public String getPath() Get the path of the cookie.
| |
| getValue | back to summary |
|---|---|
| public String getValue() Get the value of the cookie.
| |
| getVersion | back to summary |
|---|---|
| public int getVersion() Get the version of the cookie.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Generate a hash code by hashing all of the cookies properties.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Convert the cookie to a string suitable for use as the value of the corresponding HTTP header. | |
| valueOf | back to summary |
|---|---|
| public static Cookie valueOf(final String value) Creates a new instance of
| |