public class CookieDecoder extends Object
Cookie
s. This decoder can decode
the HTTP cookie version 0, 1, and 2.
HttpRequest req = ...; String value = req.getHeader("Cookie"); Set<Cookie> cookies = new CookieDecoder().decode(value);
CookieEncoder
Constructor and Description |
---|
CookieDecoder()
Creates a new decoder.
|
Modifier and Type | Method and Description |
---|---|
Set<Cookie> |
decode(String header)
Decodes the specified HTTP header value into
Cookie s. |
Copyright © 2008–2014 JBoss, by Red Hat. All rights reserved.