| java.lang.Object HTTPClient.Cookie
All known Subclasses: HTTPClient.Cookie2,
secure | protected boolean secure(Code) | | |
Cookie | public Cookie(String name, String value, String domain, String path, Date expires, boolean secure)(Code) | | Create a cookie.
Parameters: name - the cookie name Parameters: value - the cookie value Parameters: domain - the host this cookie will be sent to Parameters: path - the path prefix for which this cookie will be sent Parameters: epxires - the Date this cookie expires, null if at end ofsession Parameters: secure - if true this cookie will only be over secure connections exception: NullPointerException - if name, value,domain, or pathis null since: V0.3-1 |
discard | public boolean discard()(Code) | | true if the cookie should be discarded at the end of thesession; false otherwise |
equals | public boolean equals(Object obj)(Code) | | Two cookies match if the name, path and domain match.
|
expires | public Date expires()(Code) | | the expiry date of this cookie, or null if none set. |
getDomain | public String getDomain()(Code) | | Return the domain this cookie is valid in.
|
getName | public String getName()(Code) | | Return the name of this cookie.
|
getPath | public String getPath()(Code) | | Return the path this cookie is associated with.
|
getValue | public String getValue()(Code) | | Return the value of this cookie.
|
hasExpired | public boolean hasExpired()(Code) | | true if this cookie has expired |
hashCode | public int hashCode()(Code) | | Hash up name, path and domain into new hash.
|
isSecure | public boolean isSecure()(Code) | | Return whether this cookie should only be sent over secure connections.
|
parse | protected static Cookie[] parse(String set_cookie, RoRequest req) throws ProtocolException(Code) | | Parses the Set-Cookie header into an array of Cookies.
Parameters: set_cookie - the Set-Cookie header received from the server Parameters: req - the request used an array of Cookies as parsed from the Set-Cookie header exception: ProtocolException - if an error occurs during parsing |
sendWith | protected boolean sendWith(RoRequest req)(Code) | | Parameters: req - the request to be sent true if this cookie should be sent with the request |
toExternalForm | protected String toExternalForm()(Code) | | a string suitable for sending in a Cookie header. |
toString | public String toString()(Code) | | Create a string containing all the cookie fields. The format is that
used in the Set-Cookie header.
|
|
|