nsIWebScriptsAccessService

IID:57E2860B-4266-4a85-BFDE-AE39D945B014
Inherits From:nsISupports

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

var obj = Components.classes["@mozilla.org/xmlextras/securityservice;1"].
            getService(Components.interfaces.nsIWebScriptsAccessService);

This interface is implemented by the following components:


Methods

PRBool canAccess ( nsIURI transportURI , AString type ) void invalidateCache ( char* transportURI )

PRBool canAccess ( nsIURI transportURI , AString type )

Call this method to check script access... transportURI - The web service URI. type - Type requested by the script. return TRUE if access granted else FALSE

Arguments:
transportURI
type

void invalidateCache ( char* transportURI )

This method will invalidate the cached entry for the transport uri. Also one can clear the _entire_ cache by passing in a null string.

Arguments:
transportURI

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com