I have add a new method setBaseURL(String baseUrl, CookieManager cookiemanager) into SyncProxy.java, and modify populatePolicyMap() to populatePolicyMap(CookieManager cookieManager).
In the method setBaseURL(String baseUrl) body, I set the DEFAULT_COOKIE_MANAGER into populatePolicyMap(DEFAULT_COOKIE_MANAGER). So if any project only wants to use setBaseURL(String baseUrl), this change will not bring any impact to them.
And I have modified RpcPolicyFinder.java accordingly.
These modification has been tested in my local environment.
I have add a new method
setBaseURL(String baseUrl, CookieManager cookiemanager)
intoSyncProxy.java
, and modifypopulatePolicyMap()
topopulatePolicyMap(CookieManager cookieManager)
. In the methodsetBaseURL(String baseUrl)
body, I set theDEFAULT_COOKIE_MANAGER
intopopulatePolicyMap(DEFAULT_COOKIE_MANAGER)
. So if any project only wants to usesetBaseURL(String baseUrl)
, this change will not bring any impact to them. And I have modifiedRpcPolicyFinder.java
accordingly. These modification has been tested in my local environment.