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 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);
 

另请参见:
CookieEncoder

构造方法摘要
CookieDecoder()
          Creates a new decoder.
 
方法摘要
 java.util.Set<Cookie> decode(java.lang.String header)
          Decodes the specified HTTP header value into Cookies.
 
从类 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 Cookies.

返回:
the decoded Cookies