|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ode.bpel.compiler.DefaultResourceFinder
public class DefaultResourceFinder
Basic implementation of the ResourceFinder
interface. Resolves
URIs relative to a base URI specified at the time of construction.
Constructor Summary | |
---|---|
DefaultResourceFinder()
Default constructor: resolve relative URIs against current working directory. |
|
DefaultResourceFinder(java.io.File relativeDir,
java.io.File absoluteDir)
Constructor: resolve relative URIs against specified directory. |
Method Summary | |
---|---|
java.net.URI |
getBaseResourceURI()
Retrieves the base URI that the BPEL Process execution context is running relative to. |
java.io.InputStream |
openResource(java.net.URI uri)
Obtain an input stream to the resource at the given URI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultResourceFinder()
public DefaultResourceFinder(java.io.File relativeDir, java.io.File absoluteDir)
relativeDir
- base path for relative URLs.absoluteDir
- base path for absolute URLs.Method Detail |
---|
public java.io.InputStream openResource(java.net.URI uri) throws java.net.MalformedURLException, java.io.IOException
ResourceFinder
openResource
in interface ResourceFinder
uri
- resource URI
null
if the resource is not found
java.net.MalformedURLException
- in case of invalid URI
java.io.IOException
- in case of read errorpublic java.net.URI getBaseResourceURI()
ResourceFinder
getBaseResourceURI
in interface ResourceFinder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |