com.ning.org.jboss.netty.handler.codec.http
Class CookieDecoder

java.lang.Object
  extended by 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

Method Summary
static Set<Cookie> decode(String header)
          Decodes the specified HTTP header value into Cookies.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decode

public static Set<Cookie> decode(String header)
Decodes the specified HTTP header value into Cookies.

Returns:
the decoded Cookies


Copyright © 2013. All Rights Reserved.