public interface SessionCookieConfig
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComment()
Obtain the comment to use for session cookies.
|
java.lang.String |
getDomain()
Obtain the domain to use for session cookies.
|
int |
getMaxAge()
Obtain the maximum age to set for a session cookie.
|
java.lang.String |
getName()
Obtain the name to use for the session cookies.
|
java.lang.String |
getPath()
Obtain the path to use for session cookies.
|
boolean |
isHttpOnly()
Will session cookies be created with the httpOnly flag set?
|
boolean |
isSecure()
Will session cookies be created with the secure flag set?
|
void |
setComment(java.lang.String comment)
Sets the comment for the session cookie
|
void |
setDomain(java.lang.String domain)
Sets the domain for the session cookie
|
void |
setHttpOnly(boolean httpOnly)
Sets the httpOnly flag for the session cookie.
|
void |
setMaxAge(int MaxAge)
Sets the maximum age.
|
void |
setName(java.lang.String name)
Sets the session cookie name.
|
void |
setPath(java.lang.String path)
Sets the path of the session cookie.
|
void |
setSecure(boolean secure)
Sets the secure flag for the session cookie.
|
void setName(java.lang.String name)
name
- The name of the session cookiejava.lang.IllegalStateException
- if the associated ServletContext has
already been initialisedjava.lang.String getName()
void setDomain(java.lang.String domain)
domain
- The session cookie domainjava.lang.IllegalStateException
- if the associated ServletContext has
already been initialisedjava.lang.String getDomain()
void setPath(java.lang.String path)
path
- The session cookie pathjava.lang.IllegalStateException
- if the associated ServletContext has
already been initialisedjava.lang.String getPath()
void setComment(java.lang.String comment)
comment
- The session cookie commentjava.lang.IllegalStateException
- if the associated ServletContext has
already been initialisedjava.lang.String getComment()
void setHttpOnly(boolean httpOnly)
httpOnly
- The httpOnly setting to use for session cookiesjava.lang.IllegalStateException
- if the associated ServletContext has
already been initialisedboolean isHttpOnly()
true
if the flag should be set, otherwise false
void setSecure(boolean secure)
secure
- The secure setting to use for session cookiesjava.lang.IllegalStateException
- if the associated ServletContext has
already been initialisedboolean isSecure()
true
if the flag should be set, otherwise false
void setMaxAge(int MaxAge)
MaxAge
- the maximum age to setjava.lang.IllegalStateException
- if the associated ServletContext has
already been initialisedint getMaxAge()
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.