org.jboss.netty.handler.codec.http
Class CookieDecoder
java.lang.Object
org.jboss.netty.handler.codec.http.CookieDecoder
public class CookieDecoder
- extends Object
Decodes an HTTP header value into 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);
- Version:
- $Rev: 2122 $, $Date: 2010-02-02 11:00:04 +0900 (Tue, 02 Feb 2010) $
- Author:
- The Netty Project, Andy Taylor (andy.taylor@jboss.org), Trustin Lee
- See Also:
CookieEncoder
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CookieDecoder
public CookieDecoder()
- Creates a new decoder.
decode
public Set<Cookie> decode(String header)
- Decodes the specified HTTP header value into
Cookie
s.
- Returns:
- the decoded
Cookie
s
Copyright © 2008-2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.