Class OperaNewCookies


  • public final class OperaNewCookies
    extends Object
    Class for reading cookies of Opera (from Version 13 or higher)
    • 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 - Domain
        hosts - Hosts-Array
        paths - Paths-Array
        cookieFile - 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