WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIProtocolProxyCallback

IID:a9967200-f95e-45c2-beb3-9b060d874bfd
Inherits From:nsISupports
Status:UNDER_REVIEW

This interface serves as a closure for nsIProtocolProxyService's asyncResolve method.


Methods

void onProxyAvailable ( nsICancelable request , nsIURI URI , nsIProxyInfo proxyInfo , nsresult status )

void onProxyAvailable ( nsICancelable request , nsIURI URI , nsIProxyInfo proxyInfo , nsresult status )

This method is called when proxy info is available or when an error in the proxy resolution occurs.

Arguments:
request: The value returned from asyncResolve.
URI: The URI passed to asyncResolve.
proxyInfo: The resulting proxy info or null if there is no associated proxy info for uRI. As with the result of nsIProtocolProxyService's resolve method, a null result implies that a direct connection should be used.
status: The status of the callback. This is a failure code if the request could not be satisfied, in which case the value of status indicates the reason for the failure and proxyInfo will be null.

References

This interface is passed as an argument to the following methods:

nsIProtocolProxyService.asyncResolve

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com