org.apache.cxf.resource
Class URIResolver
java.lang.Object
org.apache.cxf.resource.URIResolver
public class URIResolver
- extends java.lang.Object
Resolves a File, classpath resource, or URL according to the follow rules:
- Check to see if a file exists, relative to the base URI.
- If the file doesn't exist, check the classpath
- If the classpath doesn't exist, try to create URL from the URI.
- Author:
- Dan Diephouse
Constructor Summary |
URIResolver()
|
URIResolver(java.lang.String path)
|
URIResolver(java.lang.String baseUriStr,
java.lang.String uriStr)
|
URIResolver(java.lang.String baseUriStr,
java.lang.String uriStr,
java.lang.Class calling)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URIResolver
public URIResolver()
URIResolver
public URIResolver(java.lang.String path)
throws java.io.IOException
- Throws:
java.io.IOException
URIResolver
public URIResolver(java.lang.String baseUriStr,
java.lang.String uriStr)
throws java.io.IOException
- Throws:
java.io.IOException
URIResolver
public URIResolver(java.lang.String baseUriStr,
java.lang.String uriStr,
java.lang.Class calling)
throws java.io.IOException
- Throws:
java.io.IOException
unresolve
public void unresolve()
resolve
public void resolve(java.lang.String baseUriStr,
java.lang.String uriStr,
java.lang.Class callingCls)
throws java.io.IOException
- Throws:
java.io.IOException
getURI
public java.net.URI getURI()
getURL
public java.net.URL getURL()
getInputStream
public java.io.InputStream getInputStream()
isFile
public boolean isFile()
getFile
public java.io.File getFile()
isResolved
public boolean isResolved()
Apache CXF