public class WindowsProxyManager extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
COOKIE_SUFFIX |
protected static File |
HIDDEN_COOKIE_DIR |
protected static String |
REG_KEY_BACKUP_READY |
protected static String |
REG_KEY_BASE |
Constructor and Description |
---|
WindowsProxyManager(boolean customPACappropriate,
String sessionId,
int port,
int portDriversShouldContact) |
Modifier and Type | Method and Description |
---|---|
void |
backupRegistrySettings() |
void |
changeRegistrySettings(Capabilities options) |
protected static void |
deleteFlatDirContents(File dir,
String suffix)
Deletes all files contained by the given directory.
|
boolean |
getChangeMaxConnections() |
File |
getCustomProxyPACDir() |
protected void |
handleEvilPopupMgrBackup() |
protected static boolean |
hideCookies(File cookieDir,
String cookieSuffix,
File hiddenCookieDir)
Hides all previously existing user cookies, found in the WinXP directory structure, by moving
them to a different directory.
|
protected void |
init() |
protected static boolean |
restoreCookies(File cookieDir,
String cookieSuffix,
File hiddenCookieDir)
Restores previously hidden user cookies, if any.
|
void |
restoreRegistrySettings(boolean ensureCleanSession) |
static void |
setBaseRegKey(String base) |
void |
setChangeMaxConnections(boolean changeMaxConnections) |
static void |
traceWith(Logger log) |
protected static final String REG_KEY_BACKUP_READY
protected static final String COOKIE_SUFFIX
protected static final File HIDDEN_COOKIE_DIR
protected static String REG_KEY_BASE
public WindowsProxyManager(boolean customPACappropriate, String sessionId, int port, int portDriversShouldContact)
public void setChangeMaxConnections(boolean changeMaxConnections)
public boolean getChangeMaxConnections()
public File getCustomProxyPACDir()
protected void init()
protected void handleEvilPopupMgrBackup()
public static void setBaseRegKey(String base)
public void changeRegistrySettings(Capabilities options)
public void backupRegistrySettings()
public void restoreRegistrySettings(boolean ensureCleanSession)
protected static boolean hideCookies(File cookieDir, String cookieSuffix, File hiddenCookieDir)
protected static boolean restoreCookies(File cookieDir, String cookieSuffix, File hiddenCookieDir)
protected static void deleteFlatDirContents(File dir, String suffix)
dir
- the directory to delete the contents ofsuffix
- if not null, only files with this suffix will be deleted.public static void traceWith(Logger log)
Copyright © 2013. All rights reserved.