Deprecated
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.
// ExampleHttpRequestreq = ...; res.setHeader("Cookie",ClientCookieEncoder.encode("JSESSIONID", "1234"));
ClientCookieDecoder
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| public static String | |
| public static String | |
| public static String |
| ClientCookieEncoder | back to summary |
|---|---|
| private ClientCookieEncoder() | |
| encode | back to summary |
|---|---|
| public static String encode(String name, String value)
Deprecated
Encodes the specified cookie into a Cookie header value.
| |
| encode | back to summary |
|---|---|
| public static String encode(Cookie cookie)
Deprecated
Encodes the specified cookie into a Cookie header value. | |
| encode | back to summary |
|---|---|
| public static String encode(Cookie... cookies)
Deprecated
Encodes the specified cookies into a single Cookie header value. | |
| encode | back to summary |
|---|---|
| public static String encode(Iterable<Cookie> cookies)
Deprecated
Encodes the specified cookies into a single Cookie header value.
| |