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
  85f94b77_1813_6a60_8ff8_85d87da526e7["Cookie"]
  d9b3512e_3cd7_e449_b2a4_9329def605ec["Cookie.java"]
  85f94b77_1813_6a60_8ff8_85d87da526e7 -->|defined in| d9b3512e_3cd7_e449_b2a4_9329def605ec
  style 85f94b77_1813_6a60_8ff8_85d87da526e7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/cookie/Cookie.java lines 22–146

public interface Cookie extends Comparable<Cookie> {

    /**
     * Constant for undefined MaxAge attribute value.
     */
    long UNDEFINED_MAX_AGE = Long.MIN_VALUE;

    /**
     * Returns the name of this {@link Cookie}.
     *
     * @return The name of this {@link Cookie}
     */
    String name();

    /**
     * Returns the value of this {@link Cookie}.
     *
     * @return The value of this {@link Cookie}
     */
    String value();

    /**
     * Sets the value of this {@link Cookie}.
     *
     * @param value The value to set
     */
    void setValue(String value);

    /**
     * Returns true if the raw value of this {@link Cookie},
     * was wrapped with double quotes in original Set-Cookie header.
     *
     * @return If the value of this {@link Cookie} is to be wrapped
     */
    boolean wrap();

    /**
     * Sets true if the value of this {@link Cookie}
     * is to be wrapped with double quotes.
     *
     * @param wrap true if wrap
     */
    void setWrap(boolean wrap);

    /**
     * Returns the domain of this {@link Cookie}.
     *
     * @return The domain of this {@link Cookie}
     */
    String domain();

    /**
     * Sets the domain of this {@link Cookie}.
     *
     * @param domain The domain to use
     */
    void setDomain(String domain);

    /**
     * Returns the path of this {@link Cookie}.
     *
     * @return The {@link Cookie}'s path
     */
    String path();

    /**
     * Sets the path of this {@link Cookie}.
     *
     * @param path The path to use for this {@link Cookie}
     */
    void setPath(String path);

    /**
     * Returns the maximum age of this {@link Cookie} in seconds or {@link Cookie#UNDEFINED_MAX_AGE} if unspecified
     *
     * @return The maximum age of this {@link Cookie}
     */
    long maxAge();

    /**
     * Sets the maximum age of this {@link Cookie} in seconds.

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/Cookie.java.
Where is Cookie defined?
Cookie is defined in codec-http/src/main/java/io/netty/handler/codec/http/cookie/Cookie.java at line 22.

Analyze Your Own Codebase

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

Try Supermodel Free