Class Cookies


  • public class Cookies
    extends Object
    Cookies contained in the thread-local ContainerRequest. To obtain a Cookies object call Cookies.get().
    • 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)