org.w3c.mwi.mobileok.basic
Interface ResourceRetriever

All Known Implementing Classes:
HttpResourceRetriever

public interface ResourceRetriever

Interface that must be implemented by Web resource retrievers.

Version:
$Revision: 1.1 $
Author:
Francois Daoust

Method Summary
 java.util.List<RetrievalElement> getResource(java.net.URI uri)
          Retrieves the Web resource identified by the URI.
 boolean isSchemeSupported(java.net.URI uri)
          Returns true when the scheme of the given URI is supported by the resource retriever.
 

Method Detail

getResource

java.util.List<RetrievalElement> getResource(java.net.URI uri)
Retrieves the Web resource identified by the URI.

The exact class of the returned RetrievalElement elements may depend on the scheme and Content-Type of the resource being retrieved.

Parameters:
uri - Absolute URI of the Web resource to retrieve
Returns:
The list of client/server exchanges that were needed to actually retrieve the resource, null when the scheme of the URI is not supported.

isSchemeSupported

boolean isSchemeSupported(java.net.URI uri)
Returns true when the scheme of the given URI is supported by the resource retriever.

Parameters:
uri - Absolute URI of the Web resource to check
Returns:
true when the scheme is supported, false otherwise.