net.sf.antcontrib.net
Class PostTask.Cookie
java.lang.Object
net.sf.antcontrib.net.PostTask.Cookie
- PostTask
public class PostTask.Cookie
extends java.lang.Object
Represents a cookie. See RFC 2109 and 2965.
Cookie
public Cookie(String raw)
raw
- the raw string abstracted from the header of an http response
for a single cookie.
Cookie
public Cookie(String name,
String value)
name
- name of the cookievalue
- the value of the cookie
getDomain
public String getDomain()
getId
public String getId()
- the id of the cookie, used internally by Post to store the cookie
in a hashtable.
getName
public String getName()
getPath
public String getPath()
getValue
public String getValue()
setDomain
public void setDomain(String domain)
setPath
public void setPath(String path)
path
- the path of the cookie
toString
public String toString()
- a Cookie formatted as a Cookie Version 1 string. The returned
string is suitable for including with an http request.