Package net.sf.antcontrib.net
Class PostTask.Cookie
- java.lang.Object
-
- net.sf.antcontrib.net.PostTask.Cookie
-
- Enclosing class:
- PostTask
public class PostTask.Cookie extends java.lang.ObjectRepresents a cookie. See RFC 2109 and 2965.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDomain()java.lang.StringgetId()java.lang.StringgetName()java.lang.StringgetPath()java.lang.StringgetValue()voidsetDomain(java.lang.String domain)voidsetPath(java.lang.String path)java.lang.StringtoString()
-
-
-
Constructor Detail
-
Cookie
public Cookie(java.lang.String raw)
- Parameters:
raw- the raw string abstracted from the header of an http response for a single cookie.
-
Cookie
public Cookie(java.lang.String name, java.lang.String value)- Parameters:
name- name of the cookievalue- the value of the cookie
-
-
Method Detail
-
getId
public java.lang.String getId()
- Returns:
- the id of the cookie, used internally by Post to store the cookie in a hashtable.
-
getName
public java.lang.String getName()
- Returns:
- the name of the cookie
-
getValue
public java.lang.String getValue()
- Returns:
- the value of the cookie
-
setDomain
public void setDomain(java.lang.String domain)
- Parameters:
domain- the domain of the cookie
-
getDomain
public java.lang.String getDomain()
- Returns:
- the domain of the cookie
-
setPath
public void setPath(java.lang.String path)
- Parameters:
path- the path of the cookie
-
getPath
public java.lang.String getPath()
- Returns:
- the path of the cookie
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- a Cookie formatted as a Cookie Version 1 string. The returned string is suitable for including with an http request.
-
-