| Modifier and Type | Field and Description |
|---|---|
private org.springframework.core.io.Resource |
springResource
The cached Spring
Resource. |
| Modifier | Constructor and Description |
|---|---|
private |
ResourceHelper(org.springframework.core.io.Resource theResource)
A private for shimming the provided input.
|
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
Resource |
createRelativeResource(String relativePath) |
boolean |
exists() |
String |
getDescription() |
File |
getFile() |
String |
getFilename() |
InputStream |
getInputStream() |
URI |
getURI() |
URL |
getURL() |
boolean |
isOpen() |
boolean |
isReadable() |
long |
lastModified() |
static Resource |
of(org.springframework.core.io.Resource springResource)
Return a
Resource that does all the work of the provided ResourceIf the input implements Resource then it is cast to the output, other a shim class is generated. |
private org.springframework.core.io.Resource springResource
Resource.private ResourceHelper(@Nonnull org.springframework.core.io.Resource theResource)
theResource - the spring resource;@Nonnull public static Resource of(@ParameterName(name="springResource") org.springframework.core.io.Resource springResource)
Resource that does all the work of the provided ResourceResource then it is cast to the output, other a shim class is generated.springResource - the inputResource which reflects what the Spring one doespublic InputStream getInputStream() throws IOException
getInputStream in interface ResourceIOExceptionpublic boolean isReadable()
isReadable in interface Resourcepublic URL getURL() throws IOException
getURL in interface ResourceIOExceptionpublic URI getURI() throws IOException
getURI in interface ResourceIOExceptionpublic File getFile() throws IOException
getFile in interface ResourceIOExceptionpublic long contentLength()
throws IOException
contentLength in interface ResourceIOExceptionpublic long lastModified()
throws IOException
lastModified in interface ResourceIOExceptionpublic Resource createRelativeResource(String relativePath) throws IOException
createRelativeResource in interface ResourceIOExceptionpublic String getFilename()
getFilename in interface Resourcepublic String getDescription()
getDescription in interface ResourceCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.