Package org.apache.cxf.resource
Class URIResolver
- java.lang.Object
- 
- org.apache.cxf.resource.URIResolver
 
- 
- All Implemented Interfaces:
- AutoCloseable
 
 public class URIResolver extends Object implements 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 SummaryConstructors Constructor Description URIResolver()URIResolver(String path)URIResolver(String baseUriStr, String uriStr)URIResolver(String baseUriStr, String uriStr, Class<?> calling)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()FilegetFile()InputStreamgetInputStream()URIgetURI()URLgetURL()booleanisFile()booleanisResolved()voidresolve(String baseUriStr, String uriStr, Class<?> callingCls)voidunresolve()
 
- 
- 
- 
Constructor Detail- 
URIResolverpublic URIResolver() 
 - 
URIResolverpublic URIResolver(String path) throws IOException - Throws:
- IOException
 
 - 
URIResolverpublic URIResolver(String baseUriStr, String uriStr) throws IOException - Throws:
- IOException
 
 - 
URIResolverpublic URIResolver(String baseUriStr, String uriStr, Class<?> calling) throws IOException - Throws:
- IOException
 
 
- 
 - 
Method Detail- 
unresolvepublic void unresolve() 
 - 
resolvepublic void resolve(String baseUriStr, String uriStr, Class<?> callingCls) throws IOException - Throws:
- IOException
 
 - 
getURIpublic URI getURI() 
 - 
getURLpublic URL getURL() 
 - 
getInputStreampublic InputStream getInputStream() 
 - 
isFilepublic boolean isFile() 
 - 
getFilepublic File getFile() 
 - 
isResolvedpublic boolean isResolved() 
 - 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Throws:
- IOException
 
 
- 
 
-