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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getPath()
Obtains the path to thisHttpResource
.boolean
isExist()
Indicates if thisHttpResource
exists.
-
-
-
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
HttpResource
exists. Should thisHttpResource
not exist, only the path will be available.This allows for caching of
HttpResource
instances not existing.- Returns:
true
if thisHttpResource
exists.
-
-