ServerCookieEncoder
instead@Deprecated
public final class ServerCookieEncoder
extends java.lang.Object
// ExampleHttpResponse
res = ...; res.setHeader("Set-Cookie",ServerCookieEncoder
.encode("JSESSIONID", "1234"));
ServerCookieDecoder
限定符和类型 | 方法和说明 |
---|---|
static java.util.List<java.lang.String> |
encode(java.util.Collection<Cookie> cookies)
已过时。
|
static java.util.List<java.lang.String> |
encode(Cookie... cookies)
已过时。
|
static java.lang.String |
encode(Cookie cookie)
已过时。
|
static java.util.List<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 cookie@Deprecated public static java.util.List<java.lang.String> encode(Cookie... cookies)
cookies
- a bunch of cookies@Deprecated public static java.util.List<java.lang.String> encode(java.util.Collection<Cookie> cookies)
cookies
- a bunch of cookies@Deprecated public static java.util.List<java.lang.String> encode(java.lang.Iterable<Cookie> cookies)
cookies
- a bunch of cookies