Home / Type/ Cookie Type — netty Architecture

Cookie Type — netty Architecture

Architecture documentation for the Cookie type/interface in Cookie.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  df5764ac_4be6_576f_b2bd_802f12ad6952["Cookie"]
  3fe094b6_cf3e_ee5d_0e85_bf4ce6a0e5da["Cookie.java"]
  df5764ac_4be6_576f_b2bd_802f12ad6952 -->|defined in| 3fe094b6_cf3e_ee5d_0e85_bf4ce6a0e5da
  style df5764ac_4be6_576f_b2bd_802f12ad6952 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/Cookie.java lines 25–221

@Deprecated
public interface Cookie extends io.netty.handler.codec.http.cookie.Cookie {

    /**
     * @deprecated Use {@link #name()} instead.
     */
    @Deprecated
    String getName();

    /**
     * @deprecated Use {@link #value()} instead.
     */
    @Deprecated
    String getValue();

    /**
     * @deprecated Use {@link #domain()} instead.
     */
    @Deprecated
    String getDomain();

    /**
     * @deprecated Use {@link #path()} instead.
     */
    @Deprecated
    String getPath();

    /**
     * @deprecated Use {@link #comment()} instead.
     */
    @Deprecated
    String getComment();

    /**
     * Returns the comment of this {@link Cookie}.
     *
     * @return The comment of this {@link Cookie}
     *
     * @deprecated Not part of RFC6265
     */
    @Deprecated
    String comment();

    /**
     * Sets the comment of this {@link Cookie}.
     *
     * @param comment The comment to use
     *
     * @deprecated Not part of RFC6265
     */
    @Deprecated
    void setComment(String comment);

    /**
     * @deprecated Use {@link #maxAge()} instead.
     */
    @Deprecated
    long getMaxAge();

    /**
     * Returns the maximum age of this {@link Cookie} in seconds or {@link Long#MIN_VALUE} if unspecified
     *
     * @return The maximum age of this {@link Cookie}
     *
     * @deprecated Not part of RFC6265
     */
    @Deprecated
    @Override
    long maxAge();

    /**
     * Sets the maximum age of this {@link Cookie} in seconds.
     * If an age of {@code 0} is specified, this {@link Cookie} will be
     * automatically removed by browser because it will expire immediately.
     * If {@link Long#MIN_VALUE} is specified, this {@link Cookie} will be removed when the
     * browser is closed.
     *
     * @param maxAge The maximum age of this {@link Cookie} in seconds
     *
     * @deprecated Not part of RFC6265
     */

Frequently Asked Questions

What is the Cookie type?
Cookie is a type/interface in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/Cookie.java.
Where is Cookie defined?
Cookie is defined in codec-http/src/main/java/io/netty/handler/codec/http/Cookie.java at line 25.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free