JavaScript is disabled on your browser.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
io.netty.handler.codec.http

Class ClientCookieEncoder


  • Deprecated.

    @Deprecated
    public final class ClientCookieEncoder
    extends Object 
    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, 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 Detail

      • 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.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

Copyright © 2008–2025 The Netty Project. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /