nsIRDFRemoteDataSource

IID:1D297320-27F7-11d3-BE01-000064657374
Inherits From:nsISupports

A datasource that may load asynchronously

This interface is implemented by the following components:


Properties

readonly PRBool loaded

This value is true when the datasource has fully loaded itself.


Methods

void Flush ( ) void FlushTo ( char* URI ) void Init ( char* URI ) void Refresh ( PRBool blocking )

void Flush ( )

Request that a data source write it's contents out to permanent storage, if applicable.


void FlushTo ( char* URI )

Arguments:
URI

void Init ( char* URI )

Specify the URI for the data source: this is the prefix that will be used to register the data source in the data source registry.

Arguments:
URI: the URI to load

void Refresh ( PRBool blocking )

Refresh the remote datasource, re-loading its contents from the URI.

Arguments:
blocking: If true, the call will block until the datasource has completely reloaded.

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
August 23, 2004, 5:05 am no at email dot com
Refresh does not work if the server returns HTTP status code 304 (Not modified).
The datasource is emptied in this case. Since, I guess, it parses the returned data, which is none,
and replaces the current data.

datasource.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource).Refresh(false);

Copyright © 1999 - 2005 XULPlanet.com