@NotThreadSafe public class BasicClientCookie2HC4 extends BasicClientCookieHC4 implements org.apache.http.cookie.SetCookie2
SetCookie2.| Constructor and Description |
|---|
BasicClientCookie2HC4(java.lang.String name,
java.lang.String value)
Default Constructor taking a name and a value.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
java.lang.String |
getCommentURL()
Returns null.
|
int[] |
getPorts()
Returns null.
|
boolean |
isExpired(java.util.Date date)
Returns true if this cookie has expired.
|
boolean |
isPersistent()
Returns false if the cookie should be discarded at the end
of the "session"; true otherwise.
|
void |
setCommentURL(java.lang.String commentURL) |
void |
setDiscard(boolean discard) |
void |
setPorts(int[] ports) |
containsAttribute, getAttribute, getComment, getDomain, getExpiryDate, getName, getPath, getValue, getVersion, isSecure, setAttribute, setComment, setDomain, setExpiryDate, setPath, setSecure, setValue, setVersion, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic BasicClientCookie2HC4(java.lang.String name,
java.lang.String value)
name - The name.value - The value.public int[] getPorts()
BasicClientCookieHC4getPorts in interface org.apache.http.cookie.CookiegetPorts in class BasicClientCookieHC4public void setPorts(int[] ports)
setPorts in interface org.apache.http.cookie.SetCookie2public java.lang.String getCommentURL()
BasicClientCookieHC4getCommentURL in interface org.apache.http.cookie.CookiegetCommentURL in class BasicClientCookieHC4public void setCommentURL(java.lang.String commentURL)
setCommentURL in interface org.apache.http.cookie.SetCookie2public void setDiscard(boolean discard)
setDiscard in interface org.apache.http.cookie.SetCookie2public boolean isPersistent()
BasicClientCookieHC4isPersistent in interface org.apache.http.cookie.CookieisPersistent in class BasicClientCookieHC4public boolean isExpired(java.util.Date date)
BasicClientCookieHC4isExpired in interface org.apache.http.cookie.CookieisExpired in class BasicClientCookieHC4date - Current timepublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class BasicClientCookieHC4java.lang.CloneNotSupportedExceptionCopyright © 1999-2015 The Apache Software Foundation. All rights reserved.