|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.my.webproxy.beans.http.PersistedCookieImpl
public class PersistedCookieImpl
PersistedCookieImpl is an embeddable, JPA-persistable implementation of ICookie. This implementation is intended for use by the JPA implementation of IWebProxyState and should closely mirror the information available from an HttpClient cookie instance.
| Constructor Summary | |
|---|---|
PersistedCookieImpl(String name,
String domain)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getComment()
Returns the comment describing the purpose of this cookie, or null if no such comment has been defined. |
Date |
getCreated()
|
String |
getDomain()
Returns domain attribute of the cookie. |
Date |
getExpiryDate()
Returns the expiration Date of the cookie, or null
if none exists. |
String |
getName()
Return the name. |
String |
getPath()
Returns the path attribute of the cookie |
Date |
getUpdated()
|
String |
getValue()
|
int |
getVersion()
Returns the version of the cookie specification to which this cookie conforms. |
int |
hashCode()
|
boolean |
isExpired()
Returns true if this cookie has expired. |
boolean |
isSecure()
|
protected void |
onCreate()
|
protected void |
onUpdate()
|
void |
setComment(String comment)
Sets the comment used to describe the cookie's purpose. |
void |
setExpiryDate(Date expiryDate)
Sets expiration date. |
void |
setPath(String path)
Sets the path attribute. |
void |
setSecure(boolean secure)
Sets the secure attribute of the cookie. |
void |
setValue(String value)
Set the value. |
void |
setVersion(int version)
Sets the version of the cookie specification to which this cookie conforms. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PersistedCookieImpl(String name,
String domain)
| Method Detail |
|---|
protected void onCreate()
protected void onUpdate()
public boolean isExpired()
ICookie
isExpired in interface ICookiepublic String getName()
ICookie
getName in interface ICookie#setName(String)public String getValue()
getValue in interface ICookiepublic void setValue(String value)
ICookie
setValue in interface ICookiepublic String getPath()
ICookie
getPath in interface ICookieICookie.setPath(java.lang.String)public void setPath(String path)
ICookie
setPath in interface ICookieICookie.getPath()public String getDomain()
ICookie
getDomain in interface ICookie#setDomain(java.lang.String)public Date getExpiryDate()
ICookieDate of the cookie, or null
if none exists.
getExpiryDate in interface ICookieDate, or null.ICookie.setExpiryDate(java.util.Date)public void setExpiryDate(Date expiryDate)
ICookie
setExpiryDate in interface ICookieICookie.getExpiryDate()public String getComment()
ICookie
getComment in interface ICookieICookie.setComment(String)public void setComment(String comment)
ICookie
setComment in interface ICookieICookie.getComment()public boolean isSecure()
isSecure in interface ICookietrue if this cookie should only be sent over secure connections.ICookie.setSecure(boolean)public void setSecure(boolean secure)
ICookieWhen true the cookie should only be sent using a secure protocol (https). This should only be set when the cookie's originating server used a secure protocol to set the cookie's value.
setSecure in interface ICookie#getSecure()public int getVersion()
ICookie
getVersion in interface ICookieICookie.setVersion(int)public void setVersion(int version)
ICookie
setVersion in interface ICookieICookie.getVersion()public Date getCreated()
getCreated in interface ICookiepublic Date getUpdated()
getUpdated in interface ICookiepublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||