|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.deepamehta.core.service.ClientState
public class ClientState
Cookies sent by a client.
Field Summary | |
---|---|
private Map<String,String> |
values
|
Constructor Summary | |
---|---|
ClientState(String cookie)
Converts a "Cookie" header value (String) to a map (key=String, value=String). |
Method Summary | |
---|---|
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. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Map<String,String> values
Constructor Detail |
---|
public ClientState(String cookie)
Called by JAX-RS container to create a ClientState from a "Cookie" @HeaderParam
Method Detail |
---|
public String get(String name)
public long getLong(String name)
public boolean has(String name)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |