## Uses of Interface
org.apache.http.cookie.Cookie

- Packages that use Cookie
  软件包 | 描述
  --- | ---
  org.apache.http.client | 客户端HTTP通信API。
  org.apache.http.cookie | 客户端HTTP状态管理API。
  org.apache.http.impl.client | 默认HTTP客户端实现。
  org.apache.http.impl.cookie | 标准和常见的HTTP状态管理策略的默认实现。

- - ### Uses of Cookie in org.apache.http.client

    Methods in org.apache.http.client that return types with arguments of type Cookie
    Modifier and Type | Method and Description
    --- | ---
    `List<Cookie>` | CookieStore.`getCookies()` 返回此商店中包含的所有Cookie。

    Methods in org.apache.http.client with parameters of type Cookie
    Modifier and Type | Method and Description
    --- | ---
    `void` | CookieStore.`addCookie(Cookie cookie)` 添加一个`Cookie` ，替换任何现有的等效的cookie。

  - ### Uses of Cookie in org.apache.http.cookie

    Subinterfaces of Cookie in org.apache.http.cookie
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `ClientCookie` ClientCookie扩展了标准的`Cookie`接口，具有额外的客户端特定功能，能够完全按原始服务器指定的方式检索原始cookie属性。
    `interface` | `SetCookie` 该接口表示由原始服务器发送给HTTP代理的 `Set-Cookie`响应头，以保持会话状态。
    `interface` | `SetCookie2` 该接口表示由原始服务器发送给HTTP代理的 `Set-Cookie2`响应头，以保持会话状态。

    Methods in org.apache.http.cookie that return types with arguments of type Cookie
    Modifier and Type | Method and Description
    --- | ---
    `List<Cookie>` | CookieSpec.`parse(Header header, CookieOrigin origin)` 将 `"Set-Cookie"`标题解析成一组Cookie。

    Methods in org.apache.http.cookie with parameters of type Cookie
    Modifier and Type | Method and Description
    --- | ---
    `int` | CookiePriorityComparator.`compare(Cookie c1, Cookie c2)`
    `int` | CookiePathComparator.`compare(Cookie c1, Cookie c2)`
    `int` | CookieIdentityComparator.`compare(Cookie c1, Cookie c2)`
    `boolean` | CookieAttributeHandler.`match(Cookie cookie, CookieOrigin origin)` 与给定的值（要求提交的目标主机的属性）匹配相应的cookie属性。
    `boolean` | CookieSpec.`match(Cookie cookie, CookieOrigin origin)` 确定Cookie是否与目标位置匹配。
    `void` | CookieAttributeHandler.`validate(Cookie cookie, CookieOrigin origin)` 对给定的属性值进行Peforms cookie验证。
    `void` | CookieSpec.`validate(Cookie cookie, CookieOrigin origin)` 根据cookie规范定义的验证规则验证cookie。

    Method parameters in org.apache.http.cookie with type arguments of type Cookie
    Modifier and Type | Method and Description
    --- | ---
    `List<Header>` | CookieSpec.`formatCookies(List<Cookie> cookies)` 为Cookie数组创建 `"Cookie"`标题。

  - ### Uses of Cookie in org.apache.http.impl.client

    Methods in org.apache.http.impl.client that return types with arguments of type Cookie
    Modifier and Type | Method and Description
    --- | ---
    `List<Cookie>` | BasicCookieStore.`getCookies()` 返回此HTTP状态当前包含的不可变数组`cookies` 。

    Methods in org.apache.http.impl.client with parameters of type Cookie
    Modifier and Type | Method and Description
    --- | ---
    `void` | BasicCookieStore.`addCookie(Cookie cookie)` 添加一个`HTTP cookie` ，替换任何现有的等效的cookie。
    `void` | BasicCookieStore.`addCookies(Cookie[] cookies)` 添加一个数组`HTTP cookies` 。

  - ### Uses of Cookie in org.apache.http.impl.cookie

    Classes in org.apache.http.impl.cookie that implement Cookie
    Modifier and Type | Class and Description
    --- | ---
    `class` | `BasicClientCookie` 默认执行`SetCookie` 。
    `class` | `BasicClientCookie2` 默认执行`SetCookie2` 。

    Methods in org.apache.http.impl.cookie that return types with arguments of type Cookie
    Modifier and Type | Method and Description
    --- | ---
    `List<Cookie>` | RFC6265CookieSpec.`parse(Header header, CookieOrigin origin)`
    `List<Cookie>` | IgnoreSpec.`parse(Header header, CookieOrigin origin)`
    `List<Cookie>` | DefaultCookieSpec.`parse(Header header, CookieOrigin origin)`
    `List<Cookie>` | BrowserCompatSpec.`parse(Header header, CookieOrigin origin)` 已过时。
    `List<Cookie>` | NetscapeDraftSpec.`parse(Header header, CookieOrigin origin)` 将Set-Cookie值解析为 `Cookie`的数组。
    `List<Cookie>` | RFC2965Spec.`parse(Header header, CookieOrigin origin)`
    `List<Cookie>` | RFC2109Spec.`parse(Header header, CookieOrigin origin)`
    `protected List<Cookie>` | CookieSpecBase.`parse(HeaderElement[] elems, CookieOrigin origin)`
    `protected List<Cookie>` | RFC2965Spec.`parse(HeaderElement[] elems, CookieOrigin origin)`

    Methods in org.apache.http.impl.cookie with parameters of type Cookie
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | RFC2965Spec.`formatCookieAsVer(CharArrayBuffer buffer, Cookie cookie, int version)` 添加有效的端口属性值，例如
    `protected void` | RFC2109Spec.`formatCookieAsVer(CharArrayBuffer buffer, Cookie cookie, int version)` 返回一个适合发送的字符串，符合RFC 2109中定义的 `"Cookie"`标头，用于向后兼容cookie版本0
    `boolean` | RFC2965CommentUrlAttributeHandler.`match(Cookie cookie, CookieOrigin origin)`
    `boolean` | RFC6265CookieSpec.`match(Cookie cookie, CookieOrigin origin)`
    `boolean` | CookieSpecBase.`match(Cookie cookie, CookieOrigin origin)`
    `boolean` | AbstractCookieAttributeHandler.`match(Cookie cookie, CookieOrigin origin)`
    `boolean` | RFC2965VersionAttributeHandler.`match(Cookie cookie, CookieOrigin origin)`
    `boolean` | PublicSuffixDomainFilter.`match(Cookie cookie, CookieOrigin origin)` 如果cookie的域名来自黑名单，则不要匹配。
    `boolean` | RFC2965DomainAttributeHandler.`match(Cookie cookie, CookieOrigin origin)` 匹配Cookie域属性。
    `boolean` | NetscapeDomainHandler.`match(Cookie cookie, CookieOrigin origin)`
    `boolean` | BasicPathHandler.`match(Cookie cookie, CookieOrigin origin)`
    `boolean` | RFC2965PortAttributeHandler.`match(Cookie cookie, CookieOrigin origin)` 匹配cookie端口属性。
    `boolean` | IgnoreSpec.`match(Cookie cookie, CookieOrigin origin)`
    `boolean` | DefaultCookieSpec.`match(Cookie cookie, CookieOrigin origin)`
    `boolean` | RFC2109DomainHandler.`match(Cookie cookie, CookieOrigin origin)`
    `boolean` | BasicDomainHandler.`match(Cookie cookie, CookieOrigin origin)`
    `boolean` | PublicSuffixFilter.`match(Cookie cookie, CookieOrigin origin)` 已过时。 如果cookie的域名来自黑名单，则不要匹配。
    `boolean` | RFC2965Spec.`match(Cookie cookie, CookieOrigin origin)`
    `boolean` | BasicSecureHandler.`match(Cookie cookie, CookieOrigin origin)`
    `boolean` | RFC2965DiscardAttributeHandler.`match(Cookie cookie, CookieOrigin origin)`
    `void` | RFC2965CommentUrlAttributeHandler.`validate(Cookie cookie, CookieOrigin origin)`
    `void` | RFC6265CookieSpec.`validate(Cookie cookie, CookieOrigin origin)`
    `void` | CookieSpecBase.`validate(Cookie cookie, CookieOrigin origin)`
    `void` | AbstractCookieAttributeHandler.`validate(Cookie cookie, CookieOrigin origin)`
    `void` | RFC2965VersionAttributeHandler.`validate(Cookie cookie, CookieOrigin origin)` 验证cookie版本属性。
    `void` | PublicSuffixDomainFilter.`validate(Cookie cookie, CookieOrigin origin)`
    `void` | RFC2965DomainAttributeHandler.`validate(Cookie cookie, CookieOrigin origin)` 验证Cookie域属性。
    `void` | NetscapeDomainHandler.`validate(Cookie cookie, CookieOrigin origin)`
    `void` | BasicPathHandler.`validate(Cookie cookie, CookieOrigin origin)`
    `void` | RFC2965PortAttributeHandler.`validate(Cookie cookie, CookieOrigin origin)` 验证Cookie端口属性。
    `void` | DefaultCookieSpec.`validate(Cookie cookie, CookieOrigin origin)`
    `void` | RFC2109DomainHandler.`validate(Cookie cookie, CookieOrigin origin)`
    `void` | RFC2109VersionHandler.`validate(Cookie cookie, CookieOrigin origin)`
    `void` | BasicDomainHandler.`validate(Cookie cookie, CookieOrigin origin)`
    `void` | PublicSuffixFilter.`validate(Cookie cookie, CookieOrigin origin)` 已过时。
    `void` | RFC2965Spec.`validate(Cookie cookie, CookieOrigin origin)`
    `void` | RFC2109Spec.`validate(Cookie cookie, CookieOrigin origin)`
    `void` | RFC2965DiscardAttributeHandler.`validate(Cookie cookie, CookieOrigin origin)`

    Method parameters in org.apache.http.impl.cookie with type arguments of type Cookie
    Modifier and Type | Method and Description
    --- | ---
    `List<Header>` | RFC6265CookieSpec.`formatCookies(List<Cookie> cookies)`
    `List<Header>` | IgnoreSpec.`formatCookies(List<Cookie> cookies)`
    `List<Header>` | DefaultCookieSpec.`formatCookies(List<Cookie> cookies)`
    `List<Header>` | BrowserCompatSpec.`formatCookies(List<Cookie> cookies)` 已过时。
    `List<Header>` | NetscapeDraftSpec.`formatCookies(List<Cookie> cookies)`
    `List<Header>` | RFC2109Spec.`formatCookies(List<Cookie> cookies)`

Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.

本帮助文档是使用 《谷歌翻译》翻译，请与英文版配合使用 by--QQ:654638585