Class InstanceCookieHandler

  • All Implemented Interfaces:
    CookieHandler

    public class InstanceCookieHandler
    extends BaseCookieHandler
    This implementation of the CookieHandler interface keeps the cookies with the instance of this object. If it is shared between endpoints the sessions will be shared as long as they are sent to the same domain.
    • Constructor Detail

      • InstanceCookieHandler

        public InstanceCookieHandler()
    • Method Detail

      • setCookiePolicy

        public void setCookiePolicy​(CookiePolicy cookiePolicy)
        Description copied from interface: CookieHandler
        Define a CookiePolicy for cookies stored by this CookieHandler
        Parameters:
        cookiePolicy - the CookiePolicy