Class FileResourceSystem
- java.lang.Object
-
- net.officefloor.web.resource.file.FileResourceSystem
-
- All Implemented Interfaces:
ResourceSystem
public class FileResourceSystem extends java.lang.Object implements ResourceSystem
ResourceSystem
for files.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description FileResourceSystem(ResourceSystemContext context)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.file.Path
getResource(java.lang.String path)
Obtains thePath
to the resource.
-
-
-
Constructor Detail
-
FileResourceSystem
public FileResourceSystem(ResourceSystemContext context) throws java.io.IOException
Instantiate.- Parameters:
context
-ResourceSystemContext
.- Throws:
java.io.IOException
- If to setup file resources.
-
-
Method Detail
-
getResource
public java.nio.file.Path getResource(java.lang.String path) throws java.io.IOException
Description copied from interface:ResourceSystem
Obtains thePath
to the resource.- Specified by:
getResource
in interfaceResourceSystem
- Parameters:
path
- Path for the resource.- Returns:
Path
if resource found, otherwisenull
.- Throws:
java.io.IOException
- If failure in obtainingPath
.
-
-