## Uses of Class
javax.ws.rs.core.Cookie

- Packages that use Cookie
  Package | Description
  --- | ---
  javax.ws.rs.client | The JAX-RS client API
  javax.ws.rs.container | Container-specific JAX-RS API.
  javax.ws.rs.core | Low-level interfaces and annotations used to create RESTful service resources.

- - ### Uses of Cookie in javax.ws.rs.client

    Methods in javax.ws.rs.client that return types with arguments of type Cookie
    Modifier and Type | Method and Description
    --- | ---
    `Map<String,Cookie>` | ClientRequestContext.`getCookies()` Get any cookies that accompanied the request.

    Methods in javax.ws.rs.client with parameters of type Cookie
    Modifier and Type | Method and Description
    --- | ---
    `Invocation.Builder` | Invocation.Builder.`cookie(Cookie cookie)` Add a cookie to be set.

  - ### Uses of Cookie in javax.ws.rs.container

    Methods in javax.ws.rs.container that return types with arguments of type Cookie
    Modifier and Type | Method and Description
    --- | ---
    `Map<String,Cookie>` | ContainerRequestContext.`getCookies()` Get any cookies that accompanied the request.

  - ### Uses of Cookie in javax.ws.rs.core

    Subclasses of Cookie in javax.ws.rs.core
    Modifier and Type | Class and Description
    --- | ---
    `class` | `NewCookie` Used to create a new HTTP cookie, transferred in a response.

    Methods in javax.ws.rs.core that return Cookie
    Modifier and Type | Method and Description
    --- | ---
    `Cookie` | NewCookie.`toCookie()` Obtain a new instance of a `Cookie` with the same name, value, path, domain and version as this `NewCookie`.
    `static Cookie` | Cookie.`valueOf(String value)` Creates a new instance of `Cookie` by parsing the supplied string.

    Methods in javax.ws.rs.core that return types with arguments of type Cookie
    Modifier and Type | Method and Description
    --- | ---
    `Map<String,Cookie>` | HttpHeaders.`getCookies()` Get any cookies that accompanied the request.

    Constructors in javax.ws.rs.core with parameters of type Cookie
    Constructor and Description
    `NewCookie(Cookie cookie)` Create a new instance copying the information in the supplied cookie.
    `NewCookie(Cookie cookie, String comment, int maxAge, boolean secure)` Create a new instance supplementing the information in the supplied cookie.
    `NewCookie(Cookie cookie, String comment, int maxAge, Date expiry, boolean secure, boolean httpOnly)` Create a new instance supplementing the information in the supplied cookie.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.