public final class ReceivedCookie extends Cookie
discard, domain, expirationDate, httpSeparatorCharacters, name, path, value, version
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
encodeToHeaderValue()
Encodes the content of this cookie to the HTTP header value representation as of RFC2965.
|
java.net.URI |
getDomain() |
java.lang.String |
getName() |
java.net.URI |
getPath() |
java.lang.String |
getValue() |
protected static java.util.ArrayList<ReceivedCookie> |
parseHeader(java.lang.String httpHeader)
Parses the value of a "Cookie:" HTTP header and returns a list of received cookies which it contained.
|
equals, hashCode, validateDomain, validateDomain, validateExpirationDate, validateName, validatePath, validatePath, validateValue
protected static java.util.ArrayList<ReceivedCookie> parseHeader(java.lang.String httpHeader) throws java.text.ParseException
httpHeader
- The value of a "Cookie:" header (i.e. the prefix "Cookie:" must not be contained in this parameter!)ReceivedCookie
objects. The validity of their name/value pairs is not deeply checked, their getName() / getValue() might throw!java.text.ParseException
- If the general formatting of the cookie is wrong.public java.lang.String getName()
public java.net.URI getDomain()
public java.net.URI getPath()
public java.lang.String getValue()
protected java.lang.String encodeToHeaderValue()
Cookie
encodeToHeaderValue
in class Cookie