public class MacProxyManager extends Object
'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 and Description |
---|
MacProxyManager(String sessionId,
int port) |
Modifier and Type | Method and Description |
---|---|
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
|
public MacProxyManager(String sessionId, int port)
public File getCustomProxyPACDir()
public void changeNetworkSettings()
protected String runNetworkSetup(String... args)
public void backupNetworkSettings()
Preferences
public void restoreNetworkSettings()
Copyright © 2014. All rights reserved.