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 Summary
ConstructorDescriptionURIResolver
(String path) URIResolver
(String baseUriStr, String uriStr) URIResolver
(String baseUriStr, String uriStr, Class<?> calling) -
Method Summary
-
Constructor Details
-
URIResolver
public URIResolver() -
URIResolver
- Throws:
IOException
-
URIResolver
- Throws:
IOException
-
URIResolver
- Throws:
IOException
-
-
Method Details
-
unresolve
public void unresolve() -
resolve
- Throws:
IOException
-
getURI
-
getURL
-
getInputStream
-
isFile
public boolean isFile() -
getFile
-
isResolved
public boolean isResolved() -
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-