Class NotExistHttpResource
- java.lang.Object
-
- net.officefloor.web.resource.impl.AbstractHttpResource
-
- net.officefloor.web.resource.impl.NotExistHttpResource
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,HttpResource
public class NotExistHttpResource extends AbstractHttpResource
Not existingHttpResource.- Author:
- Daniel Sagenschneider
-
-
Field Summary
-
Fields inherited from class net.officefloor.web.resource.impl.AbstractHttpResource
path
-
-
Constructor Summary
Constructors Constructor Description NotExistHttpResource(java.lang.String path)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisExist()Indicates if thisHttpResourceexists.-
Methods inherited from class net.officefloor.web.resource.impl.AbstractHttpResource
equals, getPath, hashCode
-
-
-
-
Method Detail
-
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
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
-