GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Use
  • Tree
  • Deprecated
  • Index
  • Search
  • Help
  • io.netty.handler.codec.http
  • Cookie

This view

  • Original page
  • New address

GeezerVison is showing netty.io — Cookie (Netty API Reference (4.1.141.Final))

Interface Cookie

All Superinterfaces:
Comparable<Cookie>, Cookie
All Known Implementing Classes:
DefaultCookie

@Deprecated public interface Cookie extends Cookie
Deprecated.
Use Cookie instead.
An interface defining an HTTP cookie.
  • Field Summary

    Fields inherited from interface Cookie

    UNDEFINED_MAX_AGE
    Modifier and Type
    Field
    Description
    static final long
    UNDEFINED_MAX_AGE
    Constant for undefined MaxAge attribute value.
  • Method Summary

    Modifier and Type
    Method
    Description
    String
    comment()
    Deprecated.
    Not part of RFC6265
    String
    commentUrl()
    Deprecated.
    Not part of RFC6265
    String
    getComment()
    Deprecated.
    Use comment() instead.
    String
    getCommentUrl()
    Deprecated.
    Use commentUrl() instead.
    String
    getDomain()
    Deprecated.
    Use Cookie.domain() instead.
    long
    getMaxAge()
    Deprecated.
    Use maxAge() instead.
    String
    getName()
    Deprecated.
    Use Cookie.name() instead.
    String
    getPath()
    Deprecated.
    Use Cookie.path() instead.
    Set<Integer>
    getPorts()
    Deprecated.
    Use ports() instead.
    String
    getValue()
    Deprecated.
    Use Cookie.value() instead.
    int
    getVersion()
    Deprecated.
    Use version() instead.
    boolean
    isDiscard()
    Deprecated.
    Not part of RFC6265
    long
    maxAge()
    Deprecated.
    Not part of RFC6265
    Set<Integer>
    ports()
    Deprecated.
    Not part of RFC6265
    void
    setComment(String comment)
    Deprecated.
    Not part of RFC6265
    void
    setCommentUrl(String commentUrl)
    Deprecated.
    Not part of RFC6265
    void
    setDiscard(boolean discard)
    Deprecated.
    Not part of RFC6265
    void
    setMaxAge(long maxAge)
    Deprecated.
    Not part of RFC6265
    void
    setPorts(int... ports)
    Deprecated.
    Not part of RFC6265
    void
    setPorts(Iterable<Integer> ports)
    Deprecated.
    Not part of RFC6265
    void
    setVersion(int version)
    Deprecated.
    Not part of RFC6265
    int
    version()
    Deprecated.
    Not part of RFC6265

    Methods inherited from interface Comparable

    compareTo

    Methods inherited from interface Cookie

    domain, isHttpOnly, isSecure, name, path, setDomain, setHttpOnly, setPath, setSecure, setValue, setWrap, value, wrap
    Modifier and Type
    Method
    Description
    String
    domain()
    Returns the domain of this Cookie.
    boolean
    isHttpOnly()
    Checks to see if this Cookie can only be accessed via HTTP.
    boolean
    isSecure()
    Checks to see if this Cookie is secure
    String
    name()
    Returns the name of this Cookie.
    String
    path()
    Returns the path of this Cookie.
    void
    setDomain(String domain)
    Sets the domain of this Cookie.
    void
    setHttpOnly(boolean httpOnly)
    Determines if this Cookie is HTTP only.
    void
    setPath(String path)
    Sets the path of this Cookie.
    void
    setSecure(boolean secure)
    Sets the security getStatus of this Cookie
    void
    setValue(String value)
    Sets the value of this Cookie.
    void
    setWrap(boolean wrap)
    Sets true if the value of this Cookie is to be wrapped with double quotes.
    String
    value()
    Returns the value of this Cookie.
    boolean
    wrap()
    Returns true if the raw value of this Cookie, was wrapped with double quotes in original Set-Cookie header.
  • Method Details

    • getName

      @Deprecated String getName()
      Deprecated.
      Use Cookie.name() instead.
    • getValue

      @Deprecated String getValue()
      Deprecated.
      Use Cookie.value() instead.
    • getDomain

      @Deprecated String getDomain()
      Deprecated.
      Use Cookie.domain() instead.
    • getPath

      @Deprecated String getPath()
      Deprecated.
      Use Cookie.path() instead.
    • getComment

      @Deprecated String getComment()
      Deprecated.
      Use comment() instead.
    • comment

      @Deprecated String comment()
      Deprecated.
      Not part of RFC6265
      Returns the comment of this Cookie.
      Returns:
      The comment of this Cookie
    • setComment

      @Deprecated void setComment(String comment)
      Deprecated.
      Not part of RFC6265
      Sets the comment of this Cookie.
      Parameters:
      comment - The comment to use
    • getMaxAge

      @Deprecated long getMaxAge()
      Deprecated.
      Use maxAge() instead.
    • maxAge

      @Deprecated long maxAge()
      Deprecated.
      Not part of RFC6265
      Returns the maximum age of this Cookie in seconds or Long.MIN_VALUE if unspecified
      Specified by:
      maxAge in interface Cookie
      Returns:
      The maximum age of this Cookie
    • setMaxAge

      @Deprecated void setMaxAge(long maxAge)
      Deprecated.
      Not part of RFC6265
      Sets the maximum age of this Cookie in seconds. If an age of 0 is specified, this Cookie will be automatically removed by browser because it will expire immediately. If Long.MIN_VALUE is specified, this Cookie will be removed when the browser is closed.
      Specified by:
      setMaxAge in interface Cookie
      Parameters:
      maxAge - The maximum age of this Cookie in seconds
    • getVersion

      @Deprecated int getVersion()
      Deprecated.
      Use version() instead.
    • version

      @Deprecated int version()
      Deprecated.
      Not part of RFC6265
      Returns the version of this Cookie.
      Returns:
      The version of this Cookie
    • setVersion

      @Deprecated void setVersion(int version)
      Deprecated.
      Not part of RFC6265
      Sets the version of this Cookie.
      Parameters:
      version - The new version to use
    • getCommentUrl

      @Deprecated String getCommentUrl()
      Deprecated.
      Use commentUrl() instead.
    • commentUrl

      @Deprecated String commentUrl()
      Deprecated.
      Not part of RFC6265
      Returns the comment URL of this Cookie.
      Returns:
      The comment URL of this Cookie
    • setCommentUrl

      @Deprecated void setCommentUrl(String commentUrl)
      Deprecated.
      Not part of RFC6265
      Sets the comment URL of this Cookie.
      Parameters:
      commentUrl - The comment URL to use
    • isDiscard

      @Deprecated boolean isDiscard()
      Deprecated.
      Not part of RFC6265
      Checks to see if this Cookie is to be discarded by the browser at the end of the current session.
      Returns:
      True if this Cookie is to be discarded, otherwise false
    • setDiscard

      @Deprecated void setDiscard(boolean discard)
      Deprecated.
      Not part of RFC6265
      Sets the discard flag of this Cookie. If set to true, this Cookie will be discarded by the browser at the end of the current session
      Parameters:
      discard - True if the Cookie is to be discarded
    • getPorts

      @Deprecated Set<Integer> getPorts()
      Deprecated.
      Use ports() instead.
    • ports

      @Deprecated Set<Integer> ports()
      Deprecated.
      Not part of RFC6265
      Returns the ports that this Cookie can be accessed on.
      Returns:
      The Set of ports that this Cookie can use
    • setPorts

      @Deprecated void setPorts(int... ports)
      Deprecated.
      Not part of RFC6265
      Sets the ports that this Cookie can be accessed on.
      Parameters:
      ports - The ports that this Cookie can be accessed on
    • setPorts

      @Deprecated void setPorts(Iterable<Integer> ports)
      Deprecated.
      Not part of RFC6265
      Sets the ports that this Cookie can be accessed on.
      Parameters:
      ports - The Iterable collection of ports that this Cookie can be accessed on.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.