Class SupersetCookieManager

java.lang.Object
java.net.CookieHandler
java.net.CookieManager
io.jmix.superset.client.cookie.SupersetCookieManager

public class SupersetCookieManager extends CookieManager
The class for configuring cookie management for HttpClient. In SupersetClient it is injected as a Spring bean and can be replaced by custom implementation.

When CSRF token request is sent, it returns Set-Cookie header alongside the token. This cookie should also be sent while getting guest token. The CookieManager by default uses CookiePolicy.ACCEPT_ORIGINAL_SERVER for requests and sends cookie when it is necessary.

This class can be extended for configuring more advanced cookie policy or cookie store.

  • Constructor Details

    • SupersetCookieManager

      public SupersetCookieManager()