public class Cookies extends Object
Modifier and Type | Method and 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() |
public String get(String name)
public long getLong(String name)
public boolean has(String name)
public static Cookies get()
public static void set(com.sun.jersey.spi.container.ContainerRequest request)
Copyright © 2022. All Rights Reserved.