Since a java.net.CookieStore manages cookies in org.eclipse.jetty.client.HttpClient, I want to share the cookies with the SWT Browser widget.
HttpClient and Browser are both Eclipse technologies. Is there a way to have the same cookie store?
Since a java.net.CookieStore manages cookies in org.eclipse.jetty.client.HttpClient, I want to share the cookies with the SWT Browser widget.
HttpClient and Browser are both Eclipse technologies. Is there a way to have the same cookie store?
Copyright © 2021 Jogjafile Inc.
No, you cannot share the Cookie stores of HttpClient and SWT Browser. The Browser control uses the cookie store of the underlying native Browser, e.g. Mozilla, WebKit of IE.
You may want to try
Browser::setCookie()andgetCookie()to store and retrieve specific SWT cookies. The changes apply to allBrowsercontrol instances within an SWT application.