| java.lang.Object HTTPClient.Cookie HTTPClient.Cookie2
discard | protected boolean discard(Code) | | |
domain_set | protected boolean domain_set(Code) | | |
path_set | protected boolean path_set(Code) | | |
port_list | protected int[] port_list(Code) | | |
port_set | protected boolean port_set(Code) | | |
version | protected int version(Code) | | |
Cookie2 | public Cookie2(String name, String value, String domain, int[] port_list, String path, Date expires, boolean discard, boolean secure, String comment, URI comment_url)(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: port_list - an array of allowed server ports for this cookie,or null if the the cookie may be sent to any port Parameters: path - the path prefix for which this cookie will be sent Parameters: epxires - the Date this cookie expires, or null if never Parameters: discard - if true then the cookie will be discarded at theend of the session regardless of expiry Parameters: secure - if true this cookie will only be over secure connections Parameters: comment - the comment associated with this cookie, or null if none Parameters: comment_url - the comment URL associated with this cookie, or nullif none exception: NullPointerException - if name, value,domain, or pathis null |
discard | public boolean discard()(Code) | | true if the cookie should be discarded at the end of thesession; false otherwise |
getComment | public String getComment()(Code) | | the comment string, or null if none was set |
getCommentURL | public URI getCommentURL()(Code) | | the comment url |
getPorts | public int[] getPorts()(Code) | | the array of ports |
getVersion | public int getVersion()(Code) | | the version as an int |
parse | protected static Cookie[] parse(String set_cookie, RoRequest req) throws ProtocolException(Code) | | Parses the Set-Cookie2 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 |
toString | public String toString()(Code) | | Create a string containing all the cookie fields. The format is that
used in the Set-Cookie header.
|
|
|