public class ClasspathHttpDirectory extends AbstractHttpResource implements HttpDirectory
HttpDirectory
implementation.resourcePath
Constructor and Description |
---|
ClasspathHttpDirectory(String resourcePath,
String classPathPrefix,
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. |
String |
toString() |
equals, getPath, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPath
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.