@Deprecated public final class ClientCookieEncoder extends Object
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.
// ExampleHttpRequest
req = ...; res.setHeader("Cookie",ClientCookieEncoder
.encode("JSESSIONID", "1234"));
ClientCookieDecoder
Modifier and Type | Method and Description |
---|---|
static String |
encode(Cookie... cookies)
Deprecated.
|
static String |
encode(Cookie cookie)
Deprecated.
|
static String |
encode(Iterable<Cookie> cookies)
Deprecated.
|
static String |
encode(String name,
String value)
Deprecated.
|
@Deprecated public static String encode(String name, String value)
name
- the cookie namevalue
- the cookie value@Deprecated public static String encode(Cookie cookie)
cookie
- the specified cookie@Deprecated public static String encode(Cookie... cookies)
cookies
- some cookies@Deprecated public static String encode(Iterable<Cookie> cookies)
cookies
- some cookiesCopyright © 2008–2024 The Netty Project. All rights reserved.