class UrlContextResource
extends org.springframework.core.io.UrlResource
implements org.springframework.core.io.ContextResource
UrlResource that adds support for
ContextResource. This resource is used by the
OsgiBundleResourcePatternResolver with the URLs returned by the OSGi
API.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
pathWithinContext |
| Constructor and Description |
|---|
UrlContextResource(java.lang.String path)
Constructs a new
UrlContextResource instance. |
UrlContextResource(java.net.URL url,
java.lang.String path)
Constructs a new
UrlContextResource instance. |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.String |
checkPath(java.lang.String path) |
java.lang.String |
getPathWithinContext() |
createRelative, equals, getDescription, getFile, getFilename, getInputStream, getURI, getURL, hashCodecontentLength, customizeConnection, customizeConnection, exists, getFile, getFileForLastModifiedCheck, isReadable, lastModifiedclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic UrlContextResource(java.lang.String path)
throws java.net.MalformedURLException
UrlContextResource instance.path - java.net.MalformedURLExceptionpublic UrlContextResource(java.net.URL url,
java.lang.String path)
UrlContextResource instance.url -