public class PersistedCookieImpl extends Object implements ICookie, Serializable
| Constructor and Description |
|---|
PersistedCookieImpl(String name,
String domain) |
| Modifier and Type | Method and Description |
|---|---|
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() |
protected void onCreate()
protected void onUpdate()
public boolean isExpired()
ICookiepublic void setValue(String value)
ICookiepublic String getPath()
ICookiegetPath in interface ICookieICookie.setPath(java.lang.String)public void setPath(String path)
ICookiesetPath in interface ICookieICookie.getPath()public String getDomain()
ICookiepublic 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)
ICookiesetExpiryDate in interface ICookieICookie.getExpiryDate()public String getComment()
ICookiegetComment in interface ICookieICookie.setComment(String)public void setComment(String comment)
ICookiesetComment 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.
public int getVersion()
ICookiegetVersion in interface ICookieICookie.setVersion(int)public void setVersion(int version)
ICookiesetVersion in interface ICookieICookie.getVersion()public Date getCreated()
getCreated in interface ICookiepublic Date getUpdated()
getUpdated in interface ICookieCopyright © 2016 Jasig. All Rights Reserved.