Class SessionConfig
java.lang.Object
org.apache.tomcat.util.descriptor.web.SessionConfig
Representation of a session configuration element for a web application, as represented in a
<session-config> element in the deployment descriptor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSessionTrackingMode(String sessionTrackingMode) Adds a session tracking mode.Returns the cookie comment.Returns the cookie domain.Returns the cookie HTTP-only flag.Returns the cookie max age.Returns the cookie name.Returns the cookie path.Returns the cookie secure flag.Returns the session timeout.Returns the session tracking modes.voidsetCookieComment(String cookieComment) Sets the cookie comment.voidsetCookieDomain(String cookieDomain) Sets the cookie domain.voidsetCookieHttpOnly(String cookieHttpOnly) Sets the cookie HTTP-only flag.voidsetCookieMaxAge(String cookieMaxAge) Sets the cookie max age.voidsetCookieName(String cookieName) Sets the cookie name.voidsetCookiePath(String cookiePath) Sets the cookie path.voidsetCookieSecure(String cookieSecure) Sets the cookie secure flag.voidsetSessionTimeout(String sessionTimeout) Sets the session timeout.
-
Constructor Details
-
SessionConfig
public SessionConfig()Default constructor.
-
-
Method Details
-
getSessionTimeout
Returns the session timeout.- Returns:
- the session timeout
-
setSessionTimeout
Sets the session timeout.- Parameters:
sessionTimeout- the session timeout
-
getCookieName
Returns the cookie name.- Returns:
- the cookie name
-
setCookieName
Sets the cookie name.- Parameters:
cookieName- the cookie name
-
getCookieDomain
Returns the cookie domain.- Returns:
- the cookie domain
-
setCookieDomain
Sets the cookie domain.- Parameters:
cookieDomain- the cookie domain
-
getCookiePath
Returns the cookie path.- Returns:
- the cookie path
-
setCookiePath
Sets the cookie path.- Parameters:
cookiePath- the cookie path
-
getCookieComment
Returns the cookie comment.- Returns:
- the cookie comment
-
setCookieComment
Sets the cookie comment.- Parameters:
cookieComment- the cookie comment
-
getCookieHttpOnly
Returns the cookie HTTP-only flag.- Returns:
- the HTTP-only flag
-
setCookieHttpOnly
Sets the cookie HTTP-only flag.- Parameters:
cookieHttpOnly- the HTTP-only flag
-
getCookieSecure
Returns the cookie secure flag.- Returns:
- the secure flag
-
setCookieSecure
Sets the cookie secure flag.- Parameters:
cookieSecure- the secure flag
-
getCookieMaxAge
Returns the cookie max age.- Returns:
- the max age
-
setCookieMaxAge
Sets the cookie max age.- Parameters:
cookieMaxAge- the max age
-
getSessionTrackingModes
Returns the session tracking modes.- Returns:
- the session tracking modes
-
addSessionTrackingMode
Adds a session tracking mode.- Parameters:
sessionTrackingMode- the tracking mode to add
-