Package systems.dmx.core.service
Class Cookies
- java.lang.Object
-
- systems.dmx.core.service.Cookies
-
public class Cookies extends Object
Cookies contained in the thread-local ContainerRequest. To obtain a Cookies object call Cookies.get().
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Cookies
get()
Returns a Cookies object representing the cookies contained in the thread-local ContainerRequest.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()
-
-
-
Method Detail
-
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()
Returns a Cookies object representing the cookies contained in the thread-local ContainerRequest. If called outside request scope an empty Cookies object is returned.
-
set
public static void set(com.sun.jersey.spi.container.ContainerRequest request)
-
-