Milyn-Commons Version 0.6

org.milyn.resource
Class URLResourceLocator

java.lang.Object
  extended byorg.milyn.resource.URLResourceLocator
All Implemented Interfaces:
ExternalResourceLocator

public class URLResourceLocator
extends java.lang.Object
implements ExternalResourceLocator

URL stream org.milyn.resource locator.

Author:
tfennelly

Constructor Summary
URLResourceLocator()
           
 
Method Summary
 java.io.InputStream getResource(java.lang.String url)
          Get the stream specified by the 'uri' parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLResourceLocator

public URLResourceLocator()
Method Detail

getResource

public java.io.InputStream getResource(java.lang.String url)
                                throws java.lang.IllegalArgumentException,
                                       java.io.IOException
Description copied from interface: ExternalResourceLocator
Get the stream specified by the 'uri' parameter.

Specified by:
getResource in interface ExternalResourceLocator
Parameters:
url - 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