Package net.officefloor.web.resource
Interface HttpResource
-
- All Known Subinterfaces:
HttpDirectory,HttpFile
- All Known Implementing Classes:
AbstractHttpResource,HttpDirectoryImpl,HttpFileImpl,NotExistHttpResource
public interface HttpResourceHTTP resource.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetPath()Obtains the path to thisHttpResource.booleanisExist()Indicates if thisHttpResourceexists.
-
-
-
Method Detail
-
getPath
java.lang.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.
-
-