org.w3c.mwi.mobileok.basic
Interface ResourceRetrieverFactory

All Known Implementing Classes:
MobileOKResourceRetrieverFactory

public interface ResourceRetrieverFactory

Interface that must be implemented by resource retriever factories.

A resource retriever factory is used to create an instance of the appropriate derived class of ResourceRetriever based on the URI scheme of the given URI.

Version:
$Revision: 1.1 $
Author:
Francois Daoust

Method Summary
 ResourceRetriever createResourceRetriever(java.net.URI uri)
          Creates an instance of a ResourceRetriever based on the given URI.
 

Method Detail

createResourceRetriever

ResourceRetriever createResourceRetriever(java.net.URI uri)
Creates an instance of a ResourceRetriever based on the given URI.

Parameters:
uri - absolute URI of the resource to retrieve.
Returns:
a ResourceRetriever that can be used to retrieve the URI, null when the URI cannot be retrieved.
Throws:
TestException - an unexpected error occurred while retrieving the resource.