org.milyn.resource
Interface ExternalResourceLocator

All Known Subinterfaces:
ContainerResourceLocator
All Known Implementing Classes:
ClasspathResourceLocator, ServletResourceLocator, URIResourceLocator

public interface ExternalResourceLocator

Interface for locating stream resources external to the container..

Author:
tfennelly

Method Summary
 InputStream getResource(String uri)
          Get the stream specified by the 'uri' parameter.
 

Method Detail

getResource

InputStream getResource(String uri)
                        throws IllegalArgumentException,
                               IOException
Get the stream specified by the 'uri' parameter.

Parameters:
uri - The location of the resource to be located.
Returns:
The InputStream associated with the org.milyn.resource.
Throws:
IllegalArgumentException - Illegal argument. Check the cause exception for more information.
IOException - Unable to get the org.milyn.resource stream.


Copyright © 2018. All rights reserved.