com.microstrategy.web.platform.GenericCookie |
![]() |
This class represents the features and functionality exposed by a generic Cookie object--independent of the contained web container (e.g., either Java or ASP).
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract int |
getMaxAge()
Returns the maximum age of the current cookie.
| ||||||||||
abstract String |
getName()
Returns the name of the cookie.
| ||||||||||
abstract String |
getNativeName()
Returns the native cookie name.
| ||||||||||
abstract String |
getNativeValue()
Returns the native cookie value.
| ||||||||||
abstract String |
getPath()
Returns the path associated with the current cookie.
| ||||||||||
abstract String |
getValue()
Returns the value of the cookie.
| ||||||||||
abstract boolean |
isHttpOnly()
Set the http only flag
| ||||||||||
abstract boolean |
isSecure()
Indicates if the client is only to return the cookie in subsequent requests if
those requests use Secure Hypertext Transfer Protocol (HTTPS); The default is false.
| ||||||||||
abstract void |
setHttpOnly(boolean value)
get the http only flag
| ||||||||||
abstract void |
setMaxAge(int maxAge)
Set the maximum age for a cookie.
| ||||||||||
abstract void |
setPath(String path)
This method modifies the path associated with the cookie.
| ||||||||||
abstract void |
setSecure(boolean value)
Sets the security level of a cookie
| ||||||||||
abstract void |
setValue(String value)
This method modifies the value of the cookie in current namespace.
|
Returns the maximum age of the current cookie.
Returns the name of the cookie.
String
which is the name of the cookie. In non-namespace mode, this name is the same
as the native cookie name using in browser. In namespace mode, the name is the native name without MicroStrategy prefix.
The namespace mode can be configured in ContainerServices.properties. Returns the native cookie name.
Returns the native cookie value.
Returns the path associated with the current cookie.
Returns the value of the cookie.
String
which is the value of the cookie. In non-namespace mode, this value is the same as
the native cookie value stored in browser. In namespace mode, the value contains only the cookie value in current namespace.
The namespace mode can be configured in ContainerServices.properties. Set the http only flag
Indicates if the client is only to return the cookie in subsequent requests if those requests use Secure Hypertext Transfer Protocol (HTTPS); The default is false.
get the http only flag
Set the maximum age for a cookie.
maxAge | The age in terms of a number of seconds. |
---|
This method modifies the path associated with the cookie.
path | The String for the path.
|
---|
Sets the security level of a cookie
value | true if the client is to return the cookie only if the request is using HTTPS. |
---|
This method modifies the value of the cookie in current namespace.
value | The String value to assign to the cookie.
|
---|