de.scheisseichfindemalkeinen.settings
Class CookieManager

java.lang.Object
  extended by de.scheisseichfindemalkeinen.settings.CookieManager

public class CookieManager
extends java.lang.Object

Class which provides methods to get the cookies from a browser. The user can decide from which browser the cookies are read.


Field Summary
static int BROWSER_FIREFOX
          Cookies from Firefox
static int BROWSER_IE
          Cookies from Internet Explorer
static int BROWSER_NO_COOKIES
          No Cookies
static int BROWSER_OPERA
          Cookies from Opera
static org.apache.log4j.Logger logger
          Logger for this class
 
Constructor Summary
CookieManager()
           
 
Method Summary
static java.lang.String getCookieFileForFirefox()
          Returns the path to the cookie-file of Firefox 1 and Firefox 2
static java.lang.String getCookieFileForFirefox3()
          Returns the path to the cookie-file of Firefox 3
static java.lang.String getCookieFileForOpera(boolean checkExist)
          Returns the path to the cookie-file of Opera
static java.lang.String getCookies(java.lang.String url)
          Returns the Cookies for a domain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BROWSER_NO_COOKIES

public static final int BROWSER_NO_COOKIES
No Cookies

See Also:
Constant Field Values

BROWSER_IE

public static final int BROWSER_IE
Cookies from Internet Explorer

See Also:
Constant Field Values

BROWSER_FIREFOX

public static final int BROWSER_FIREFOX
Cookies from Firefox

See Also:
Constant Field Values

BROWSER_OPERA

public static final int BROWSER_OPERA
Cookies from Opera

See Also:
Constant Field Values

logger

public static org.apache.log4j.Logger logger
Logger for this class

Constructor Detail

CookieManager

public CookieManager()
Method Detail

getCookies

public static java.lang.String getCookies(java.lang.String url)
Returns the Cookies for a domain

Parameters:
url - URL
Returns:
Cookies

getCookieFileForFirefox

public static java.lang.String getCookieFileForFirefox()
Returns the path to the cookie-file of Firefox 1 and Firefox 2

Returns:
Cookie-File-Path

getCookieFileForFirefox3

public static java.lang.String getCookieFileForFirefox3()
Returns the path to the cookie-file of Firefox 3

Returns:
Cookie-File-Path

getCookieFileForOpera

public static java.lang.String getCookieFileForOpera(boolean checkExist)
Returns the path to the cookie-file of Opera

Parameters:
checkExist - Check Existance
Returns:
Cookie Pfad