play.mvc
Class Http.Cookie

java.lang.Object
  extended by play.mvc.Http.Cookie
Enclosing class:
Http

public static class Http.Cookie
extends java.lang.Object

HTTP Cookie


Constructor Summary
Http.Cookie(java.lang.String name, java.lang.String value, int maxAge, java.lang.String path, java.lang.String domain, boolean secure, boolean httpOnly)
           
 
Method Summary
 java.lang.String domain()
           
 boolean httpOnly()
           
 int maxAge()
           
 java.lang.String name()
           
 java.lang.String path()
           
 boolean secure()
           
 java.lang.String value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Http.Cookie

public Http.Cookie(java.lang.String name,
                   java.lang.String value,
                   int maxAge,
                   java.lang.String path,
                   java.lang.String domain,
                   boolean secure,
                   boolean httpOnly)
Method Detail

name

public java.lang.String name()
Returns:
the cookie name

value

public java.lang.String value()
Returns:
the cookie value

maxAge

public int maxAge()
Returns:
the cookie expiration date in seconds, -1 for a transient cookie, 0 for a cookie that expires now

path

public java.lang.String path()
Returns:
the cookie path

domain

public java.lang.String domain()
Returns:
the cookie domain, or null if not defined

secure

public boolean secure()
Returns:
wether the cookie is secured, sent only for HTTPS requests

httpOnly

public boolean httpOnly()
Returns:
wether the cookie is HTTP only, i.e. not accessible from client-side JavaScript code