Package net.officefloor.web.resource
Interface HttpResourceStore
-
- All Known Implementing Classes:
HttpResourceStoreImpl
public interface HttpResourceStore
Store ofHttpResource
instances.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpFile
getDefaultHttpFile(HttpDirectory directory)
Obtains the defaultHttpFile
for theHttpDirectory
.HttpResource
getHttpResource(java.lang.String path)
Obtains theHttpResource
.
-
-
-
Method Detail
-
getHttpResource
HttpResource getHttpResource(java.lang.String path) throws java.io.IOException
Obtains theHttpResource
.- Parameters:
path
- Path to theHttpResource
.- Returns:
HttpResource
.- Throws:
java.io.IOException
- If failure in finding theHttpResource
.
-
getDefaultHttpFile
HttpFile getDefaultHttpFile(HttpDirectory directory) throws java.io.IOException
Obtains the defaultHttpFile
for theHttpDirectory
.- Parameters:
directory
-HttpDirectory
.- Returns:
HttpFile
for theHttpDirectory
ornull
if no defaultHttpFile
.- Throws:
java.io.IOException
- If failure in obtaining defaultHttpFile
.
-
-