org.springframework.boot.web.servlet.server

Class Session.Cookie

  • java.lang.Object
    • org.springframework.boot.web.servlet.server.Session.Cookie
  • Enclosing class:
    Session


    public static class Session.Cookie
    extends java.lang.Object
    Cookie properties.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Cookie() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getComment()
      Return the comment for the session cookie.
      java.lang.String getDomain()
      Return the domain for the session cookie.
      java.lang.Boolean getHttpOnly()
      Return whether to use "HttpOnly" cookies for session cookies.
      java.time.Duration getMaxAge()
      Return the maximum age of the session cookie.
      java.lang.String getName()
      Return the session cookie name.
      java.lang.String getPath()
      Return the path of the session cookie.
      java.lang.Boolean getSecure()
      Return whether to always mark the session cookie as secure.
      void setComment(java.lang.String comment) 
      void setDomain(java.lang.String domain) 
      void setHttpOnly(java.lang.Boolean httpOnly) 
      void setMaxAge(java.time.Duration maxAge) 
      void setName(java.lang.String name) 
      void setPath(java.lang.String path) 
      void setSecure(java.lang.Boolean secure) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Cookie

        public Cookie()
    • Method Detail

      • getName

        public java.lang.String getName()
        Return the session cookie name.
        Returns:
        the session cookie name
      • setName

        public void setName(java.lang.String name)
      • getDomain

        public java.lang.String getDomain()
        Return the domain for the session cookie.
        Returns:
        the session cookie domain
      • setDomain

        public void setDomain(java.lang.String domain)
      • getPath

        public java.lang.String getPath()
        Return the path of the session cookie.
        Returns:
        the session cookie path
      • setPath

        public void setPath(java.lang.String path)
      • getComment

        public java.lang.String getComment()
        Return the comment for the session cookie.
        Returns:
        the session cookie comment
      • setComment

        public void setComment(java.lang.String comment)
      • getHttpOnly

        public java.lang.Boolean getHttpOnly()
        Return whether to use "HttpOnly" cookies for session cookies.
        Returns:
        true to use "HttpOnly" cookies for session cookies.
      • setHttpOnly

        public void setHttpOnly(java.lang.Boolean httpOnly)
      • getSecure

        public java.lang.Boolean getSecure()
        Return whether to always mark the session cookie as secure.
        Returns:
        true to mark the session cookie as secure even if the request that initiated the corresponding session is using plain HTTP
      • setSecure

        public void setSecure(java.lang.Boolean secure)
      • getMaxAge

        public java.time.Duration getMaxAge()
        Return the maximum age of the session cookie.
        Returns:
        the maximum age of the session cookie
      • setMaxAge

        public void setMaxAge(java.time.Duration maxAge)