Class FileResourceSet
java.lang.Object
org.forgerock.openig.handler.resources.FileResourceSet
- All Implemented Interfaces:
ResourceSet
A
FileResourceSet
is able to give access to file-based content
within the scope of the root
directory.-
Constructor Summary
ConstructorDescriptionFileResourceSet
(File root) Constructs a file-basedResourceSet
, using the givenroot
as root directory. -
Method Summary
-
Constructor Details
-
FileResourceSet
Constructs a file-basedResourceSet
, using the givenroot
as root directory.- Parameters:
root
- root directory- Throws:
IOException
- In case an error occurred while getting the real path of the root directory.
-
-
Method Details
-
find
Description copied from interface:ResourceSet
Finds aResource
matching the givenpath
. Returnsnull
if no resource can be found or if any error happened during lookup.- Specified by:
find
in interfaceResourceSet
- Parameters:
path
- resource path- Returns:
- a matching
Resource
ornull
if not found or failure.
-