public class WarHttpDirectory extends AbstractHttpResource implements HttpDirectory
HttpDirectory
.resourcePath
Constructor and Description |
---|
WarHttpDirectory(String resourcePath,
String warIdentifier,
File directory,
String... defaultFileNames)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
HttpFile |
getDefaultFile()
Obtains the default
HttpFile for this directory. |
boolean |
isExist()
Indicates if this
HttpResource exists. |
HttpResource[] |
listResources()
Obtain the
HttpResource instances contained directly within this
directory. |
equals, getPath, hashCode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getPath
public WarHttpDirectory(String resourcePath, String warIdentifier, File directory, String... defaultFileNames)
resourcePath
- Resource path.warIdentifier
- WAR identifier to locate WarHttpResourceFactory
.directory
- Directory File
.defaultFileNames
- Names of the default HttpFile
instances in order of
searching for the default HttpFile
.public boolean isExist()
HttpResource
Indicates if this HttpResource
exists. Should this
HttpResource
not exist, only the path will be available.
This allows for caching of HttpResource
instances not existing.
It also enables implementations of ManagedObjectSource
instances
to provide the HttpResource
from a HttpRequest
dependency
- can always provide an instance with this indicating if exists.
isExist
in interface HttpResource
true
if this HttpResource
exists.public HttpFile getDefaultFile()
HttpDirectory
HttpFile
for this directory.getDefaultFile
in interface HttpDirectory
HttpFile
. May be null
if no default
HttpFile
available.public HttpResource[] listResources()
HttpDirectory
HttpResource
instances contained directly within this
directory.listResources
in interface HttpDirectory
HttpResource
instances.Copyright © 2005–2016. All rights reserved.