Class HttpDirectoryImpl
java.lang.Object
net.officefloor.web.resource.impl.AbstractHttpResource
net.officefloor.web.resource.impl.HttpDirectoryImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,HttpDirectory,HttpResource
HttpDirectory implementation.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields inherited from class net.officefloor.web.resource.impl.AbstractHttpResource
path -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Obtains the defaultHttpFilefor theHttpDirectory.booleanisExist()Indicates if thisHttpResourceexists.Methods inherited from class net.officefloor.web.resource.impl.AbstractHttpResource
equals, getPath, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.officefloor.web.resource.HttpResource
getPath
-
Constructor Details
-
HttpDirectoryImpl
Instantiate.- Parameters:
path- Path to theHttpDirectory.store-HttpResourceStore.
-
-
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.- Specified by:
isExistin interfaceHttpResource- Returns:
trueif thisHttpResourceexists.
-
getDefaultHttpFile
Description copied from interface:HttpDirectoryObtains the defaultHttpFilefor theHttpDirectory.- Specified by:
getDefaultHttpFilein interfaceHttpDirectory- Returns:
- Default
HttpFile. - Throws:
IOException- If failure in finding theHttpFile.
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-