org.springframework.boot.web.servlet.server

Class Session.Cookie

  • Enclosing class:
    Session


    public static class Session.Cookie
    extends Object
    Cookie properties.
    • Constructor Detail

      • Cookie

        public Cookie()
    • Method Detail

      • getName

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

        public void setName(String name)
      • getDomain

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

        public void setDomain(String domain)
      • getPath

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

        public void setPath(String path)
      • getComment

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

        public void setComment(String comment)
      • getHttpOnly

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

        public void setHttpOnly(Boolean httpOnly)
      • getSecure

        public 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(Boolean secure)
      • getMaxAge

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

        public void setMaxAge(Duration maxAge)

Copyright © 2019 Pivotal Software, Inc.. All rights reserved.