Class SessionConfig


  • public class SessionConfig
    extends java.lang.Object
    Representation of a session configuration element for a web application, as represented in a <session-config> element in the deployment descriptor.
    • Constructor Detail

      • SessionConfig

        public SessionConfig()
        Default constructor.
    • Method Detail

      • getSessionTimeout

        public java.lang.Integer getSessionTimeout()
        Returns the session timeout.
        Returns:
        the session timeout
      • setSessionTimeout

        public void setSessionTimeout​(java.lang.String sessionTimeout)
        Sets the session timeout.
        Parameters:
        sessionTimeout - the session timeout
      • getCookieName

        public java.lang.String getCookieName()
        Returns the cookie name.
        Returns:
        the cookie name
      • setCookieName

        public void setCookieName​(java.lang.String cookieName)
        Sets the cookie name.
        Parameters:
        cookieName - the cookie name
      • getCookieDomain

        public java.lang.String getCookieDomain()
        Returns the cookie domain.
        Returns:
        the cookie domain
      • setCookieDomain

        public void setCookieDomain​(java.lang.String cookieDomain)
        Sets the cookie domain.
        Parameters:
        cookieDomain - the cookie domain
      • getCookiePath

        public java.lang.String getCookiePath()
        Returns the cookie path.
        Returns:
        the cookie path
      • setCookiePath

        public void setCookiePath​(java.lang.String cookiePath)
        Sets the cookie path.
        Parameters:
        cookiePath - the cookie path
      • getCookieComment

        public java.lang.String getCookieComment()
        Returns the cookie comment.
        Returns:
        the cookie comment
      • setCookieComment

        public void setCookieComment​(java.lang.String cookieComment)
        Sets the cookie comment.
        Parameters:
        cookieComment - the cookie comment
      • getCookieHttpOnly

        public java.lang.Boolean getCookieHttpOnly()
        Returns the cookie HTTP-only flag.
        Returns:
        the HTTP-only flag
      • setCookieHttpOnly

        public void setCookieHttpOnly​(java.lang.String cookieHttpOnly)
        Sets the cookie HTTP-only flag.
        Parameters:
        cookieHttpOnly - the HTTP-only flag
      • getCookieSecure

        public java.lang.Boolean getCookieSecure()
        Returns the cookie secure flag.
        Returns:
        the secure flag
      • setCookieSecure

        public void setCookieSecure​(java.lang.String cookieSecure)
        Sets the cookie secure flag.
        Parameters:
        cookieSecure - the secure flag
      • getCookieMaxAge

        public java.lang.Integer getCookieMaxAge()
        Returns the cookie max age.
        Returns:
        the max age
      • setCookieMaxAge

        public void setCookieMaxAge​(java.lang.String cookieMaxAge)
        Sets the cookie max age.
        Parameters:
        cookieMaxAge - the max age
      • getCookieAttributes

        public java.util.Map<java.lang.String,​java.lang.String> getCookieAttributes()
        Returns the cookie attributes map.
        Returns:
        the cookie attributes
      • setCookieAttribute

        public void setCookieAttribute​(java.lang.String name,
                                       java.lang.String value)
        Sets a cookie attribute.
        Parameters:
        name - the attribute name
        value - the attribute value
      • getCookieAttribute

        public java.lang.String getCookieAttribute​(java.lang.String name)
        Returns a cookie attribute value.
        Parameters:
        name - the attribute name
        Returns:
        the attribute value
      • getSessionTrackingModes

        public java.util.EnumSet<SessionTrackingMode> getSessionTrackingModes()
        Returns the session tracking modes.
        Returns:
        the session tracking modes
      • addSessionTrackingMode

        public void addSessionTrackingMode​(java.lang.String sessionTrackingMode)
        Adds a session tracking mode.
        Parameters:
        sessionTrackingMode - the tracking mode to add