@Deprecated
public final class ClientCookieEncoder
extends java.lang.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
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
encode(Cookie... cookies)
已过时。
|
static java.lang.String |
encode(Cookie cookie)
已过时。
|
static java.lang.String |
encode(java.lang.Iterable<Cookie> cookies)
已过时。
|
static java.lang.String |
encode(java.lang.String name,
java.lang.String value)
已过时。
|
@Deprecated public static java.lang.String encode(java.lang.String name, java.lang.String value)
name
- the cookie namevalue
- the cookie value@Deprecated public static java.lang.String encode(Cookie cookie)
cookie
- the specified cookie@Deprecated public static java.lang.String encode(Cookie... cookies)
cookies
- some cookies@Deprecated public static java.lang.String encode(java.lang.Iterable<Cookie> cookies)
cookies
- some cookies