Class SimpleHttpServerCookie

    • 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