public class VirtualResource extends EmptyResource
| Constructor and Description |
|---|
VirtualResource(WebResourceRoot root,
String webAppPath,
String name) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
See
File.getName(). |
boolean |
isDirectory()
See
File.isDirectory(). |
boolean |
isVirtual()
Indicates if this resource is required for applications to correctly scan
the file structure but that does not exist in either the main or any
additional
WebResourceSet. |
canRead, delete, exists, getCanonicalPath, getCertificates, getCodeBase, getContent, getContentLength, getCreation, getETag, getInputStream, getLastModified, getLastModifiedHttp, getManifest, getMimeType, getURL, getWebappPath, getWebResourceRoot, isFile, setMimeTypepublic VirtualResource(WebResourceRoot root, String webAppPath, String name)
public boolean isVirtual()
WebResourceWebResourceSet. For example, if an external
directory is mapped to /WEB-INF/lib in an otherwise empty web
application, /WEB-INF will be represented as a virtual resource.isVirtual in interface WebResourceisVirtual in class EmptyResourcepublic boolean isDirectory()
WebResourceFile.isDirectory().isDirectory in interface WebResourceisDirectory in class EmptyResourcepublic String getName()
WebResourceFile.getName().getName in interface WebResourcegetName in class EmptyResourceCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.