Package net.shibboleth.shared.security
Class TestResourceConverter
java.lang.Object
net.shibboleth.shared.security.TestResourceConverter
- All Implemented Interfaces:
Resource
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTestResourceConverter(Resource theResource) A private for shimming the provided input. -
Method Summary
-
Field Details
-
springResource
The cached SpringResource.
-
-
Constructor Details
-
TestResourceConverter
A private for shimming the provided input.- Parameters:
theResource- the spring resource;
-
-
Method Details
-
of
Return aResourcethat does all the work of the providedResource.If the input implements
Resourcethen it is cast to the output, other a shim class is generated.- Parameters:
springResource- the input- Returns:
- a
Resourcewhich reflects what the Spring one does
-
getInputStream
- Specified by:
getInputStreamin interfaceResource- Throws:
IOException
-
exists
public boolean exists() -
isReadable
public boolean isReadable()- Specified by:
isReadablein interfaceResource
-
isOpen
public boolean isOpen() -
getURL
- Specified by:
getURLin interfaceResource- Throws:
IOException
-
getURI
- Specified by:
getURIin interfaceResource- Throws:
IOException
-
getFile
- Specified by:
getFilein interfaceResource- Throws:
IOException
-
contentLength
- Specified by:
contentLengthin interfaceResource- Throws:
IOException
-
lastModified
- Specified by:
lastModifiedin interfaceResource- Throws:
IOException
-
createRelativeResource
- Specified by:
createRelativeResourcein interfaceResource- Throws:
IOException
-
getFilename
- Specified by:
getFilenamein interfaceResource
-
getDescription
- Specified by:
getDescriptionin interfaceResource
-