Example usage for io.netty.handler.codec.http Cookie maxAge

List of usage examples for io.netty.handler.codec.http Cookie maxAge

Introduction

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

Prototype

@Deprecated
@Override
long maxAge();

Source Link

Document

Returns the maximum age of this Cookie in seconds or Long#MIN_VALUE if unspecified

Usage

From source file:com.chiorichan.http.HttpCookie.java

License:Mozilla Public License

public HttpCookie(Cookie cookie) {
    this(cookie.name(), cookie.value());
    setDomain(cookie.domain());/*  w w  w.  j a  v a  2s  . c o  m*/
    setExpiration(cookie.maxAge());
    setPath(cookie.path());
    needsUpdating = false;
}