Class FileResourceSet
- java.lang.Object
 - 
- org.forgerock.openig.handler.resources.FileResourceSet
 
 
- 
- All Implemented Interfaces:
 ResourceSet
public class FileResourceSet extends Object implements ResourceSet
AFileResourceSetis able to give access to file-based content within the scope of therootdirectory. 
- 
- 
Constructor Summary
Constructors Constructor Description FileResourceSet(File root)Constructs a file-basedResourceSet, using the givenrootas root directory. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resourcefind(String path)Finds aResourcematching the givenpath. 
 - 
 
- 
- 
Constructor Detail
- 
FileResourceSet
public FileResourceSet(File root) throws IOException
Constructs a file-basedResourceSet, using the givenrootas root directory.- Parameters:
 root- root directory- Throws:
 IOException- In case an error occurred while getting the real path of the root directory.
 
 - 
 
- 
Method Detail
- 
find
public Resource find(String path)
Description copied from interface:ResourceSetFinds aResourcematching the givenpath. Returnsnullif no resource can be found or if any error happened during lookup.- Specified by:
 findin interfaceResourceSet- Parameters:
 path- resource path- Returns:
 - a matching 
Resourceornullif not found or failure. 
 
 - 
 
 -