ro.isdc.wro.model.resource.locator.factory
Class AbstractUriLocatorFactory

java.lang.Object
  extended by ro.isdc.wro.model.resource.locator.factory.AbstractUriLocatorFactory
All Implemented Interfaces:
UriLocatorFactory
Direct Known Subclasses:
SimpleUriLocatorFactory

public abstract class AbstractUriLocatorFactory
extends Object
implements UriLocatorFactory

Holds a list of uri locators. The uriLocator will be created based on the first uriLocator from the supplied list which will accept the url.

Author:
Alex Objelean

Constructor Summary
AbstractUriLocatorFactory()
           
 
Method Summary
 InputStream locate(String uri)
          Locates an InputStream for the given uri.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ro.isdc.wro.model.resource.locator.factory.UriLocatorFactory
getInstance
 

Constructor Detail

AbstractUriLocatorFactory

public AbstractUriLocatorFactory()
Method Detail

locate

public final InputStream locate(String uri)
                         throws IOException
Locates an InputStream for the given uri.

Specified by:
locate in interface UriLocatorFactory
Parameters:
uri - to locate.
Returns:
InputStream of the resource.
Throws:
IOException - if uri is invalid or resource couldn't be located.


Copyright © 2008-2013. All Rights Reserved.