de.deepamehta.core.service
Class Cookies
java.lang.Object
de.deepamehta.core.service.Cookies
public class Cookies
- extends Object
Cookies obtained from request headers.
Method Summary |
static Cookies |
get()
|
String |
get(String name)
Returns the value of the cookie for the given name, or throws an exception if no such cookie exists. |
long |
getLong(String name)
Convenience method to access a long value of the cookie for the given name, or throws an exception
if no such cookie exists. |
boolean |
has(String name)
Checks if there is a cookie with the given name. |
static void |
set(com.sun.jersey.spi.container.ContainerRequest request)
|
String |
toString()
|
values
private Map<String,String> values
threadLocalRequest
private static final ThreadLocal<com.sun.jersey.spi.container.ContainerRequest> threadLocalRequest
Cookies
private Cookies()
Cookies
private Cookies(Collection<javax.ws.rs.core.Cookie> cookies)
get
public String get(String name)
- Returns the value of the cookie for the given name, or throws an exception if no such cookie exists.
getLong
public long getLong(String name)
- Convenience method to access a long value of the cookie for the given name, or throws an exception
if no such cookie exists.
has
public boolean has(String name)
- Checks if there is a cookie with the given name.
get
public static Cookies get()
set
public static void set(com.sun.jersey.spi.container.ContainerRequest request)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2015. All Rights Reserved.