org.w3c.mwi.mobileok.basic
Class MobileOKResourceRetrieverFactory

java.lang.Object
  extended by org.w3c.mwi.mobileok.basic.MobileOKResourceRetrieverFactory
All Implemented Interfaces:
ResourceRetrieverFactory

public class MobileOKResourceRetrieverFactory
extends java.lang.Object
implements ResourceRetrieverFactory

mobileOK resource retriever factory implementation.

mobileOK only supports the HTTP and HTTPS URI schemes. The factory can thus only create HttpResourceRetriever resource retrievers.

Version:
$Revision: 1.1 $
Author:
Francois Daoust

Constructor Summary
MobileOKResourceRetrieverFactory()
          Creates an instance of the factory.
 
Method Summary
 ResourceRetriever createResourceRetriever(java.net.URI uri)
          Creates an instance of a ResourceRetriever based on the given URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MobileOKResourceRetrieverFactory

public MobileOKResourceRetrieverFactory()
Creates an instance of the factory.

Method Detail

createResourceRetriever

public ResourceRetriever createResourceRetriever(java.net.URI uri)
Description copied from interface: ResourceRetrieverFactory
Creates an instance of a ResourceRetriever based on the given URI.

Specified by:
createResourceRetriever in interface ResourceRetrieverFactory
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.