org.jboss.netty.handler.codec.http
类 CookieDecoder
java.lang.Object
org.jboss.netty.handler.codec.http.CookieDecoder
public class CookieDecoder
- extends java.lang.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);
- 另请参见:
CookieEncoder
方法摘要 |
java.util.Set<Cookie> |
decode(java.lang.String header)
Decodes the specified HTTP header value into Cookie s. |
从类 java.lang.Object 继承的方法 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CookieDecoder
public CookieDecoder()
- Creates a new decoder.
decode
public java.util.Set<Cookie> decode(java.lang.String header)
- Decodes the specified HTTP header value into
Cookie
s.
- 返回:
- the decoded
Cookie
s