Class WebkitCookies
- java.lang.Object
-
- ch.supertomcat.supertomcatutils.http.cookies.webkit.WebkitCookies
-
public class WebkitCookies extends Object
Class for reading cookies of Webkit based browsers
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<BrowserCookie>getCookiesFromWebkit(String domain, String[] hosts, String[] paths, String cookieFile)Returns cookies from Webkit based browsers Because of problems, when two thread are trying to read cookies from Webkit based browsers at the same time, i had to synchronize this method.static List<BrowserCookie>getCookiesFromWebkitSqlite(String cookieFile, String domain, String[] hosts, String[] paths, Object dbLockObject)Reads out the cookies from Webkit based browser's sqlite file
-
-
-
Method Detail
-
getCookiesFromWebkit
public static List<BrowserCookie> getCookiesFromWebkit(String domain, String[] hosts, String[] paths, String cookieFile)
Returns cookies from Webkit based browsers Because of problems, when two thread are trying to read cookies from Webkit based browsers at the same time, i had to synchronize this method.- Parameters:
domain- Domainhosts- Hosts-Arraypaths- Paths-ArraycookieFile- CookieFile for Opera- Returns:
- Cookies
-
getCookiesFromWebkitSqlite
public static List<BrowserCookie> getCookiesFromWebkitSqlite(String cookieFile, String domain, String[] hosts, String[] paths, Object dbLockObject) throws ClassNotFoundException, SQLException
Reads out the cookies from Webkit based browser's sqlite file- Parameters:
cookieFile- Cookiefile (sqlite)domain- Domainhosts- Hosts-Arraypaths- Paths-ArraydbLockObject- Lock Object for reading database- Returns:
- Cookies
- Throws:
ClassNotFoundExceptionSQLException
-
-