com.ning.org.jboss.netty.handler.codec.http
Class CookieDecoder
java.lang.Object
com.ning.org.jboss.netty.handler.codec.http.CookieDecoder
public class CookieDecoder
- extends Object
Decodes an HTTP header value into Cookies. 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);
- See Also:
CookieEncoder
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
decode
public static Set<Cookie> decode(String header)
- Decodes the specified HTTP header value into
Cookies.
- Returns:
- the decoded
Cookies
Copyright © 2014. All Rights Reserved.