GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Use
  • Tree
  • Deprecated
  • Index
  • Search
  • Help
  • io.netty.handler.codec.http
  • ClientCookieEncoder

This view

  • Original page
  • New address

GeezerVison is showing netty.io — ClientCookieEncoder (Netty API Reference (4.1.141.Final))

Class ClientCookieEncoder

java.lang.Object
io.netty.handler.codec.http.ClientCookieEncoder

@Deprecated public final class ClientCookieEncoder extends Object
Deprecated.
A RFC6265 compliant cookie encoder to be used client side, so only name=value pairs are sent. User-Agents are not supposed to interpret cookies, so, if present,
invalid reference
Cookie#rawValue()
will be used. Otherwise, Cookie.value() will be used unquoted. Note that multiple cookies are supposed to be sent at once in a single "Cookie" header.
// Example
HttpRequest req = ...;
res.setHeader("Cookie", ClientCookieEncoder.encode("JSESSIONID", "1234"));
See Also:
  • ClientCookieDecoder
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    encode(Cookie cookie)
    Deprecated.
    static String
    encode(Cookie... cookies)
    Deprecated.
    static String
    encode(Iterable<Cookie> cookies)
    Deprecated.
    static String
    encode(String name, String value)
    Deprecated.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • encode

      @Deprecated public static String encode(String name, String value)
      Deprecated.
      Encodes the specified cookie into a Cookie header value.
      Parameters:
      name - the cookie name
      value - the cookie value
      Returns:
      a Rfc6265 style Cookie header value
    • encode

      @Deprecated public static String encode(Cookie cookie)
      Deprecated.
      Encodes the specified cookie into a Cookie header value.
      Parameters:
      cookie - the specified cookie
      Returns:
      a Rfc6265 style Cookie header value
    • encode

      @Deprecated public static String encode(Cookie... cookies)
      Deprecated.
      Encodes the specified cookies into a single Cookie header value.
      Parameters:
      cookies - some cookies
      Returns:
      a Rfc6265 style Cookie header value, null if no cookies are passed.
    • encode

      @Deprecated public static String encode(Iterable<Cookie> cookies)
      Deprecated.
      Encodes the specified cookies into a single Cookie header value.
      Parameters:
      cookies - some cookies
      Returns:
      a Rfc6265 style Cookie header value, null if no cookies are passed.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.