Example usage for org.apache.shiro.web.servlet Cookie getComment

List of usage examples for org.apache.shiro.web.servlet Cookie getComment

Introduction

In this page you can find the example usage for org.apache.shiro.web.servlet Cookie getComment.

Prototype

String getComment();

Source Link

Usage

From source file:com.rekoe.shiro.web.SimpleCookie.java

License:Apache License

public SimpleCookie(Cookie cookie) {
    this.name = cookie.getName();
    this.value = cookie.getValue();
    this.comment = cookie.getComment();
    this.domain = cookie.getDomain();
    this.path = cookie.getPath();
    this.maxAge = Math.max(DEFAULT_MAX_AGE, cookie.getMaxAge());
    this.version = Math.max(DEFAULT_VERSION, cookie.getVersion());
    this.secure = cookie.isSecure();
    this.httpOnly = cookie.isHttpOnly();
}