Class HttpCookieStore

  • All Implemented Interfaces:
    java.net.CookieStore

    public class HttpCookieStore
    extends java.lang.Object
    implements java.net.CookieStore
    Implementation of CookieStore that delegates to an instance created by CookieManager via CookieManager.getCookieStore().
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  HttpCookieStore.Empty  
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpCookieStore()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.net.URI uri, java.net.HttpCookie cookie)  
      java.util.List<java.net.HttpCookie> get​(java.net.URI uri)  
      java.util.List<java.net.HttpCookie> getCookies()  
      java.util.List<java.net.URI> getURIs()  
      static java.util.List<java.net.HttpCookie> matchPath​(java.net.URI uri, java.util.List<java.net.HttpCookie> cookies)  
      boolean remove​(java.net.URI uri, java.net.HttpCookie cookie)  
      boolean removeAll()  
      • Methods inherited from class java.lang.Object

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

      • HttpCookieStore

        public HttpCookieStore()
    • Method Detail

      • add

        public void add​(java.net.URI uri,
                        java.net.HttpCookie cookie)
        Specified by:
        add in interface java.net.CookieStore
      • get

        public java.util.List<java.net.HttpCookie> get​(java.net.URI uri)
        Specified by:
        get in interface java.net.CookieStore
      • getCookies

        public java.util.List<java.net.HttpCookie> getCookies()
        Specified by:
        getCookies in interface java.net.CookieStore
      • getURIs

        public java.util.List<java.net.URI> getURIs()
        Specified by:
        getURIs in interface java.net.CookieStore
      • remove

        public boolean remove​(java.net.URI uri,
                              java.net.HttpCookie cookie)
        Specified by:
        remove in interface java.net.CookieStore
      • removeAll

        public boolean removeAll()
        Specified by:
        removeAll in interface java.net.CookieStore
      • matchPath

        public static java.util.List<java.net.HttpCookie> matchPath​(java.net.URI uri,
                                                                    java.util.List<java.net.HttpCookie> cookies)