de.deepamehta.core.service
Class Cookies

Show UML class diagram
java.lang.Object
  extended by de.deepamehta.core.service.Cookies

public class Cookies
extends Object

Cookies obtained from request headers.


Field Summary
private static ThreadLocal<com.sun.jersey.spi.container.ContainerRequest> threadLocalRequest
           
private  Map<String,String> values
           
 
Constructor Summary
private Cookies()
           
private Cookies(Collection<javax.ws.rs.core.Cookie> cookies)
           
 
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

values

private Map<String,String> values

threadLocalRequest

private static final ThreadLocal<com.sun.jersey.spi.container.ContainerRequest> threadLocalRequest
Constructor Detail

Cookies

private Cookies()

Cookies

private Cookies(Collection<javax.ws.rs.core.Cookie> cookies)
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()

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.