Class NoOpCookieStore

  • All Implemented Interfaces:
    org.apache.http.client.CookieStore

    public class NoOpCookieStore
    extends java.lang.Object
    implements org.apache.http.client.CookieStore
    A NoOpCookieStore is a CookieStore which does nothing when asked to add / clear cookies. Calls to getCookies() will always return an empty list. The purpose of this implementation is to prevent cookie storage by a shared HttpClient instance by default. This behavior can help prevent subtle privacy and security issues such as one Ignition user's credentials stored in a cookie on a client shared by another Ignition user. When executing an HttpRequest on a shared client, a custom HttpContext should be used which may have its own CookieStore.
    • Constructor Summary

      Constructors 
      Constructor Description
      NoOpCookieStore()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCookie​(org.apache.http.cookie.Cookie cookie)  
      void clear()  
      boolean clearExpired​(java.util.Date date)  
      java.util.List<org.apache.http.cookie.Cookie> getCookies()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NoOpCookieStore

        public NoOpCookieStore()
    • Method Detail

      • addCookie

        public void addCookie​(org.apache.http.cookie.Cookie cookie)
        Specified by:
        addCookie in interface org.apache.http.client.CookieStore
      • getCookies

        public java.util.List<org.apache.http.cookie.Cookie> getCookies()
        Specified by:
        getCookies in interface org.apache.http.client.CookieStore
      • clearExpired

        public boolean clearExpired​(java.util.Date date)
        Specified by:
        clearExpired in interface org.apache.http.client.CookieStore
      • clear

        public void clear()
        Specified by:
        clear in interface org.apache.http.client.CookieStore