public class OsxProxySearchStrategy extends Object implements ProxySearchStrategy
All settings are stored in OSX in a special XML file format. These settings file are named plist files and contain nested dictionaries, arrays and values.
To parse this file we use a parser that is derived from a plist parser that comes with the xmlwise XML parser package:
http://code.google.com/p/xmlwise/
I modified that parser to work with the default Java XML parsing library.
The plist file is located on OSX at:
/Library/Preferences/SystemConfiguration/preferences.plist
| Modifier and Type | Field and Description |
|---|---|
static String |
OVERRIDE_ACCEPTED_DEVICES |
static String |
OVERRIDE_SETTINGS_FILE |
| Constructor and Description |
|---|
OsxProxySearchStrategy()
ProxySelector
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the printable name of the search strategy.
|
ProxySelector |
getProxySelector()
Loads the proxy settings and initializes a proxy selector for the OSX
proxy settings.
|
public static final String OVERRIDE_SETTINGS_FILE
public static final String OVERRIDE_ACCEPTED_DEVICES
public OsxProxySearchStrategy()
ProxySelector.ProxySelector()public ProxySelector getProxySelector() throws ProxyException
getProxySelector in interface ProxySearchStrategyProxyException - on file reading error.public String getName()
getName in interface ProxySearchStrategyCopyright © 2022. All rights reserved.