public interface ICookie extends Serializable
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
isExpired()
Returns true if this cookie has expired.
|
boolean |
isSecure() |
void |
setComment(String purpose)
Sets the comment used to describe the cookie's purpose.
|
void |
setExpiryDate(Date expiry)
Sets expiration date.
|
void |
setPath(String uri)
Sets the path attribute.
|
void |
setSecure(boolean flag)
Sets the secure attribute of the cookie.
|
void |
setValue(String newValue)
Set the value.
|
void |
setVersion(int v)
Sets the version of the cookie specification to which this
cookie conforms.
|
String getComment()
setComment(String)String getDomain()
#setDomain(java.lang.String)Date getExpiryDate()
Date of the cookie, or null
if none exists.Date, or null.setExpiryDate(java.util.Date)String getName()
#setName(String)String getPath()
setPath(java.lang.String)boolean isSecure()
true if this cookie should only be sent over secure connections.setSecure(boolean)boolean isExpired()
String getValue()
int getVersion()
setVersion(int)void setComment(String purpose)
comment - getComment()void setExpiryDate(Date expiry)
expiryDate - the Date after which this cookie is no longer valid.getExpiryDate()void setPath(String uri)
path - The value of the path attributegetPath()void setSecure(boolean flag)
When 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.
secure - The value of the secure attribute#getSecure()void setValue(String newValue)
value - The new value.void setVersion(int v)
version - the version of the cookie.getVersion()Date getCreated()
Date getUpdated()
Copyright © 2016 Jasig. All Rights Reserved.