nsPIProtocolProxyService

IID:d2c7b3eb-7778-468b-ae9b-c106c2afb5d1
Inherits From:nsIProtocolProxyService

THIS IS A PRIVATE INTERFACE

It exists purely as a hack to support the configureFromPAC method used by the preference panels in the various apps. Those apps need to be taught to just use the preferences API to "reload" the PAC file. Then, at that point, we can eliminate this interface completely.

This interface is intended to be used as a service. To create an object implementing this interface:

var obj = Components.classes["@mozilla.org/network/protocol-proxy-service;1"].
            getService(Components.interfaces.nsPIProtocolProxyService);

Methods

void configureFromPAC ( AUTF8String URI )

void configureFromPAC ( AUTF8String URI )

This method may be called to re-configure proxy settings given a URI to a new proxy auto config file. This method may return before the configuration actually takes affect (i.e., the URI may be loaded asynchronously).

WARNING: This method is considered harmful since it may cause the PAC preferences to be out of sync with the state of the Protocol Proxy Service. This method is going to be eliminated in the near future.

Arguments:
URI: The location of the PAC file to load. If this value is empty, then the PAC configuration will be removed.

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com