public class HttpCookie
extends java.lang.Object
ResponseCookie
sub-class has the
additional attributes expected in the "Set-Cookie" response header.Constructor and Description |
---|
HttpCookie(java.lang.String name,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getName()
Return the cookie name.
|
java.lang.String |
getValue()
Return the cookie value or an empty string (never
null ). |
int |
hashCode() |
java.lang.String |
toString() |
public HttpCookie(java.lang.String name, @Nullable java.lang.String value)
public java.lang.String getName()
public java.lang.String getValue()
null
).public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object