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

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

Introduction

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

Prototype

boolean isHttpOnly();

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