Class InstanceCookieHandler

java.lang.Object
org.apache.camel.http.base.cookie.BaseCookieHandler
org.apache.camel.http.base.cookie.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 Details

    • InstanceCookieHandler

      public InstanceCookieHandler()
  • Method Details

    • getCookieManager

      protected CookieManager getCookieManager(org.apache.camel.Exchange exchange)
      Specified by:
      getCookieManager in class BaseCookieHandler
    • setCookiePolicy

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