Package org.apache.cxf.resource
Class URIResolver
java.lang.Object
org.apache.cxf.resource.URIResolver
- All Implemented Interfaces:
- AutoCloseable
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.
- 
Constructor SummaryConstructorsConstructorDescriptionURIResolver(String path) URIResolver(String baseUriStr, String uriStr) URIResolver(String baseUriStr, String uriStr, Class<?> calling) 
- 
Method Summary
- 
Constructor Details- 
URIResolverpublic URIResolver()
- 
URIResolver- Throws:
- IOException
 
- 
URIResolver- Throws:
- IOException
 
- 
URIResolver- Throws:
- IOException
 
 
- 
- 
Method Details- 
unresolvepublic void unresolve()
- 
resolve- Throws:
- IOException
 
- 
getURI
- 
getURL
- 
getInputStream
- 
isFilepublic boolean isFile()
- 
getFile
- 
isResolvedpublic boolean isResolved()
- 
close- Specified by:
- closein interface- AutoCloseable
- Throws:
- IOException
 
 
-