Class OsxProxySearchStrategy

  • All Implemented Interfaces:
    ProxySearchStrategy

    public class OsxProxySearchStrategy
    extends Object
    implements ProxySearchStrategy
    Loads the OSX system proxy settings from the settings file.

    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

    Author:
    Markus Bernhardt, Copyright 2016, Bernd Rosstauscher, Copyright 2009