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() |
protected void |
changeRegistrySettings(boolean ensureCleanSession,
boolean avoidProxy) |
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) |
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)
protected void changeRegistrySettings(boolean ensureCleanSession, boolean avoidProxy) throws IOException
IOException
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)
Copyright © 2012. All Rights Reserved.