Package net.officefloor.web.resource
Interface HttpResource
- All Known Subinterfaces:
HttpDirectory,HttpFile
- All Known Implementing Classes:
AbstractHttpResource,HttpDirectoryImpl,HttpFileImpl,NotExistHttpResource
public interface HttpResource
HTTP resource.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptiongetPath()Obtains the path to thisHttpResource.booleanisExist()Indicates if thisHttpResourceexists.
-
Method Details
-
getPath
String getPath()Obtains the path to this
HttpResource.The path is canonical to allow using it as a key for caching this
HttpResource.- Returns:
- Canonical path to this
HttpResource.
-
isExist
boolean isExist()Indicates if this
HttpResourceexists. Should thisHttpResourcenot exist, only the path will be available.This allows for caching of
HttpResourceinstances not existing.- Returns:
trueif thisHttpResourceexists.
-