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 void
close()
boolean
isExist()
Indicates if thisHttpResource
exists.-
Methods inherited from class net.officefloor.web.resource.impl.AbstractHttpResource
equals, getPath, hashCode
-
-
-
-
Method Detail
-
isExist
public boolean isExist()
Description copied from interface:HttpResource
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.
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
-