类 HttpCookie

java.lang.Object
cn.taketoday.http.HttpCookie
直接已知子类:
ResponseCookie

public class HttpCookie extends Object
Represents an HTTP cookie as a name-value pair consistent with the content of the "Cookie" request header. The ResponseCookie sub-class has the additional attributes expected in the "Set-Cookie" response header.
从以下版本开始:
4.0
作者:
Rossen Stoyanchev, Harry Yang
另请参阅:
  • 字段详细资料

    • name

      private final String name
    • value

      private final String value
  • 构造器详细资料

    • HttpCookie

      public HttpCookie(String name, @Nullable String value)
  • 方法详细资料

    • getName

      public String getName()
      Return the cookie name.
    • getValue

      public String getValue()
      Return the cookie value or an empty string (never null).
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • equals

      public boolean equals(@Nullable Object other)
      覆盖:
      equals 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object