|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.util.resource.AbstractFilteredResource
org.opensaml.util.resource.FilesystemResource
public class FilesystemResource
A resource representing a file on the local filesystem.
| Constructor Summary | |
|---|---|
FilesystemResource(String resourcePath)
Constructor. |
|
FilesystemResource(String resourcePath,
ResourceFilter resourceFilter)
Deprecated. use AbstractFilteredResource.setResourceFilter(ResourceFilter) instead |
|
FilesystemResource(URI resourceURI)
Constructor. |
|
FilesystemResource(URI resourceURI,
ResourceFilter resourceFilter)
Deprecated. use AbstractFilteredResource.setResourceFilter(ResourceFilter) instead |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
boolean |
exists()
Checks whether the resource exists. |
InputStream |
getInputStream()
Gets the inputstream to the resource's data. |
org.joda.time.DateTime |
getLastModifiedTime()
Gets the date and time the resource was last modified. |
String |
getLocation()
Gets resource location information. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class org.opensaml.util.resource.AbstractFilteredResource |
|---|
applyFilter, getResourceFilter, setResourceFilter |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FilesystemResource(String resourcePath)
throws ResourceException
resourcePath - the path to the file for this resource
ResourceException - thrown if the resource path is null or empty
public FilesystemResource(URI resourceURI)
throws ResourceException
resourceURI - file: URI to the file
ResourceException - thrown if the resource path is null or empty
public FilesystemResource(String resourcePath,
ResourceFilter resourceFilter)
throws ResourceException
AbstractFilteredResource.setResourceFilter(ResourceFilter) instead
resourcePath - the path to the file for this resourceresourceFilter - filter to apply to this resource
ResourceException - thrown if the resource path is null or empty
public FilesystemResource(URI resourceURI,
ResourceFilter resourceFilter)
throws ResourceException
AbstractFilteredResource.setResourceFilter(ResourceFilter) instead
resourceURI - the file: URI to the file for this resourceresourceFilter - filter to apply to this resource
ResourceException - thrown if the resource path is null or empty| Method Detail |
|---|
public boolean exists()
throws ResourceException
ResourceException - thrown if there is a problem determining if the resource exists
public InputStream getInputStream()
throws ResourceException
ResourceException - thrown if an input stream can not be created for the resource
public org.joda.time.DateTime getLastModifiedTime()
throws ResourceException
ResourceException - thrown if the last modified time can not be determinedpublic String getLocation()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||