Example usage for io.netty.handler.codec.http DefaultCookie setComment

List of usage examples for io.netty.handler.codec.http DefaultCookie setComment

Introduction

In this page you can find the example usage for io.netty.handler.codec.http DefaultCookie setComment.

Prototype

@Override
    @Deprecated
    public void setComment(String comment) 

Source Link

Usage

From source file:com.mastfrog.acteur.wicket.adapters.CookieConverter.java

License:Open Source License

@Override
public Cookie unconvert(javax.servlet.http.Cookie t) {
    if (t instanceof CookieAdapter) {
        return ((CookieAdapter) t).cookie;
    } else {/* w  w w.  j  a  v a  2 s. c o  m*/
        DefaultCookie dc = new DefaultCookie(t.getName(), t.getValue());
        dc.setComment(t.getComment());
        dc.setMaxAge(t.getMaxAge());
        dc.setDomain(t.getDomain());
        dc.setVersion(t.getVersion());
        return dc;
    }
}