| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.impl.cookie.BasicClientCookie
org.apache.http.impl.cookie.BasicClientCookie2
public class BasicClientCookie2
Default implementation of SetCookie2.
| Field Summary | 
|---|
| Fields inherited from interface org.apache.http.cookie.ClientCookie | 
|---|
| COMMENT_ATTR, COMMENTURL_ATTR, DISCARD_ATTR, DOMAIN_ATTR, EXPIRES_ATTR, MAX_AGE_ATTR, PATH_ATTR, PORT_ATTR, SECURE_ATTR, VERSION_ATTR | 
| Constructor Summary | |
|---|---|
| BasicClientCookie2(String name,
                   String value)Default Constructor taking a name and a value. | |
| Method Summary | |
|---|---|
|  Object | clone() | 
|  String | getCommentURL()Returns null. | 
|  int[] | getPorts()Returns null. | 
|  boolean | isExpired(Date date)Returns true if this cookie has expired. | 
|  boolean | isPersistent()Returns falseif the cookie should be discarded at the end
 of the "session";trueotherwise. | 
|  void | setCommentURL(String commentURL)If a user agent (web browser) presents this cookie to a user, the cookie's purpose will be described by the information at this URL. | 
|  void | setDiscard(boolean discard)Set the Discard attribute. | 
|  void | setPorts(int[] ports)Sets the Port attribute. | 
| Methods inherited from class org.apache.http.impl.cookie.BasicClientCookie | 
|---|
| containsAttribute, getAttribute, getComment, getCreationDate, getDomain, getExpiryDate, getName, getPath, getValue, getVersion, isSecure, removeAttribute, setAttribute, setComment, setCreationDate, setDomain, setExpiryDate, setPath, setSecure, setValue, setVersion, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface org.apache.http.cookie.SetCookie | 
|---|
| setComment, setDomain, setExpiryDate, setPath, setSecure, setValue, setVersion | 
| Methods inherited from interface org.apache.http.cookie.Cookie | 
|---|
| getComment, getDomain, getExpiryDate, getName, getPath, getValue, getVersion, isSecure | 
| Constructor Detail | 
|---|
public BasicClientCookie2(String name,
                          String value)
name - The name.value - The value.| Method Detail | 
|---|
public int[] getPorts()
BasicClientCookie
getPorts in interface CookiegetPorts in class BasicClientCookiepublic void setPorts(int[] ports)
SetCookie2
setPorts in interface SetCookie2public String getCommentURL()
BasicClientCookie
getCommentURL in interface CookiegetCommentURL in class BasicClientCookiepublic void setCommentURL(String commentURL)
SetCookie2
setCommentURL in interface SetCookie2public void setDiscard(boolean discard)
SetCookie2Discard attribute overrides Max-age.
setDiscard in interface SetCookie2Cookie.isPersistent()public boolean isPersistent()
BasicClientCookiefalse if the cookie should be discarded at the end
 of the "session"; true otherwise.
isPersistent in interface CookieisPersistent in class BasicClientCookiefalse if the cookie should be discarded at the end
         of the "session"; true otherwisepublic boolean isExpired(Date date)
BasicClientCookie
isExpired in interface CookieisExpired in class BasicClientCookiedate - Current time
true if the cookie has expired.
public Object clone()
             throws CloneNotSupportedException
clone in class BasicClientCookieCloneNotSupportedException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||