Milyn-Commons Version 0.6

org.milyn.resource
Interface ExternalResourceLocator

All Known Subinterfaces:
ContainerResourceLocator
All Known Implementing Classes:
ServletResourceLocator, URLResourceLocator

public interface ExternalResourceLocator

Interface for locating stream resources external to the container..

Author:
tfennelly

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

Method Detail

getResource

public java.io.InputStream getResource(java.lang.String uri)
                                throws java.lang.IllegalArgumentException,
                                       java.io.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:
java.lang.IllegalArgumentException - Illegal argument. Check the cause exception for more information.
java.io.IOException - Unable to get the org.milyn.resource stream.

Milyn-Commons Version 0.6