Class OperaNewCookies
- java.lang.Object
-
- ch.supertomcat.supertomcatutils.http.cookies.opera.newformat.OperaNewCookies
-
public final class OperaNewCookies extends Object
Class for reading cookies of Opera (from Version 13 or higher)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetCookieFileForOpera()Returns the path where the cookie-file from Opera is stored TODO Implement correct path selection for Linux and MacOSstatic List<BrowserCookie>getCookiesFromOpera(String domain, String[] hosts, String[] paths, String cookieFile)Returns cookies from Opera Because of problems, when two thread are trying to read cookies from Opera at the same time, i had to synchronize this method.
-
-
-
Method Detail
-
getCookiesFromOpera
public static List<BrowserCookie> getCookiesFromOpera(String domain, String[] hosts, String[] paths, String cookieFile)
Returns cookies from Opera Because of problems, when two thread are trying to read cookies from Opera at the same time, i had to synchronize this method.- Parameters:
domain- Domainhosts- Hosts-Arraypaths- Paths-ArraycookieFile- CookieFile for Opera- Returns:
- Cookies
-
getCookieFileForOpera
public static String getCookieFileForOpera()
Returns the path where the cookie-file from Opera is stored TODO Implement correct path selection for Linux and MacOS- Returns:
- Path
-
-