Package io.jmix.superset.client.cookie
Class SupersetCookieManager
java.lang.Object
java.net.CookieHandler
java.net.CookieManager
io.jmix.superset.client.cookie.SupersetCookieManager
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 Summary
-
Method Summary
Methods inherited from class java.net.CookieManager
get, getCookieStore, put, setCookiePolicy
Methods inherited from class java.net.CookieHandler
getDefault, setDefault
-
Constructor Details
-
SupersetCookieManager
public SupersetCookieManager()
-