| Modifier and Type | Field and Description |
|---|---|
private Resource |
springResource
The cached Spring
Resource. |
| Modifier | Constructor and Description |
|---|---|
private |
ResourceHelper(Resource theResource)
A private for shimming the provided input.
|
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
net.shibboleth.utilities.java.support.resource.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 net.shibboleth.utilities.java.support.resource.Resource |
of(Resource springResource)
|
public static net.shibboleth.utilities.java.support.resource.Resource of(@ParameterName(name="springResource")
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 net.shibboleth.utilities.java.support.resource.ResourceIOExceptionpublic boolean exists()
exists in interface net.shibboleth.utilities.java.support.resource.Resourcepublic boolean isReadable()
isReadable in interface net.shibboleth.utilities.java.support.resource.Resourcepublic boolean isOpen()
isOpen in interface net.shibboleth.utilities.java.support.resource.Resourcepublic URL getURL() throws IOException
getURL in interface net.shibboleth.utilities.java.support.resource.ResourceIOExceptionpublic URI getURI() throws IOException
getURI in interface net.shibboleth.utilities.java.support.resource.ResourceIOExceptionpublic File getFile() throws IOException
getFile in interface net.shibboleth.utilities.java.support.resource.ResourceIOExceptionpublic long contentLength()
throws IOException
contentLength in interface net.shibboleth.utilities.java.support.resource.ResourceIOExceptionpublic long lastModified()
throws IOException
lastModified in interface net.shibboleth.utilities.java.support.resource.ResourceIOExceptionpublic net.shibboleth.utilities.java.support.resource.Resource createRelativeResource(String relativePath) throws IOException
createRelativeResource in interface net.shibboleth.utilities.java.support.resource.ResourceIOExceptionpublic String getFilename()
getFilename in interface net.shibboleth.utilities.java.support.resource.Resourcepublic String getDescription()
getDescription in interface net.shibboleth.utilities.java.support.resource.ResourceCopyright © 1999–2016 Shibboleth Consortium. All rights reserved.