|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.browserlaunchers.MacProxyManager
public class MacProxyManager
Class to manage the proxy server on OS X. It uses the 'networksetup' tool to do its magic; it also depends on 'scutil' to read some settings we need to interact with 'networksetup.'
'networksetup' seems to come in a great many varieties depending on different versions of OS X (and different architectures: PPC vs Intel), so we've taken some care to write this class very defensively.
Constructor Summary | |
---|---|
MacProxyManager(String sessionId,
int port)
|
Method Summary | |
---|---|
void |
backupNetworkSettings()
Copy OS X network settings into Java's per-user persistent preference store |
void |
changeNetworkSettings()
change the network settings to enable use of our proxy |
File |
getCustomProxyPACDir()
|
void |
restoreNetworkSettings()
Restore OS X network settings back the way thay were |
protected String |
runNetworkSetup(String... args)
Execute networksetup, returning the output |
protected String |
runScutil(String arg)
Execute scutil and quit, returning the output |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MacProxyManager(String sessionId, int port)
Method Detail |
---|
public File getCustomProxyPACDir()
public void changeNetworkSettings()
protected String runScutil(String arg)
protected String runNetworkSetup(String... args)
public void backupNetworkSettings()
Preferences
public void restoreNetworkSettings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |