Class SimpleHttpServerCookie

    • Field Detail

      • name

        private final String name
      • value

        private final String value
      • domain

        private final String domain
      • maxAge

        private final int maxAge
      • path

        private final String path
      • secure

        private final boolean secure
      • version

        private final int version
      • httpOnly

        private final boolean httpOnly
    • Constructor Detail

      • SimpleHttpServerCookie

        SimpleHttpServerCookie​(String name,
                               String value,
                               String domain,
                               int maxAge,
                               String path,
                               boolean secure,
                               int version,
                               boolean httpOnly)
    • Method Detail

      • getMaxAge

        public int getMaxAge()
        Description copied from interface: HttpServerCookie
        Gets the maximum age in seconds of this Cookie.
        Specified by:
        getMaxAge in interface HttpServerCookie
        Returns:
        an integer specifying the maximum age of the cookie in seconds
      • getPath

        public String getPath()
        Description copied from interface: HttpServerCookie
        Returns the path on the server to which the browser returns this cookie.
        Specified by:
        getPath in interface HttpServerCookie
        Returns:
        a String specifying a path on the server
      • isSecure

        public boolean isSecure()
        Description copied from interface: HttpServerCookie
        Returns true if the browser is sending cookies only over a secure protocol, or false if the browser can send cookies using any protocol.
        Specified by:
        isSecure in interface HttpServerCookie
        Returns:
        true if the browser uses a secure protocol, false otherwise
      • getVersion

        public int getVersion()
        Description copied from interface: HttpServerCookie
        Returns the version of the protocol this cookie complies with.
        Specified by:
        getVersion in interface HttpServerCookie
        Returns:
        the version of the protocol this cookie complies with.
      • isHttpOnly

        public boolean isHttpOnly()
        Description copied from interface: HttpServerCookie
        Checks whether this cookie has been marked as HttpOnly.
        Specified by:
        isHttpOnly in interface HttpServerCookie
        Returns:
        true if this cookie has been marked as HttpOnly, false otherwise