Class NotExistHttpResource
java.lang.Object
net.officefloor.web.resource.impl.AbstractHttpResource
net.officefloor.web.resource.impl.NotExistHttpResource
- All Implemented Interfaces:
Closeable,AutoCloseable,HttpResource
Not existing
HttpResource.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields inherited from class net.officefloor.web.resource.impl.AbstractHttpResource
path -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanisExist()Indicates if thisHttpResourceexists.Methods inherited from class net.officefloor.web.resource.impl.AbstractHttpResource
equals, getPath, hashCode
-
Constructor Details
-
NotExistHttpResource
Initiate.- Parameters:
path- Path.
-
-
Method Details
-
isExist
public boolean isExist()Description copied from interface:HttpResourceIndicates if this
HttpResourceexists. Should thisHttpResourcenot exist, only the path will be available.This allows for caching of
HttpResourceinstances not existing.- Returns:
trueif thisHttpResourceexists.
-
close
- Throws:
IOException
-