Package org.apache.catalina.webresources
Class VirtualResource
java.lang.Object
org.apache.catalina.webresources.EmptyResource
org.apache.catalina.webresources.VirtualResource
- All Implemented Interfaces:
WebResource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
boolean
boolean
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 additionalWebResourceSet
.Methods inherited from class org.apache.catalina.webresources.EmptyResource
canRead, delete, exists, getCanonicalPath, getCertificates, getCodeBase, getContent, getContentLength, getCreation, getETag, getInputStream, getLastModified, getLastModifiedHttp, getManifest, getMimeType, getURL, getWebappPath, getWebResourceRoot, isFile, setMimeType
-
Constructor Details
-
VirtualResource
-
-
Method Details
-
isVirtual
public boolean isVirtual()Description copied from interface:WebResource
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 additionalWebResourceSet
. 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.- Specified by:
isVirtual
in interfaceWebResource
- Overrides:
isVirtual
in classEmptyResource
- Returns:
true
for a virtual resource
-
isDirectory
public boolean isDirectory()- Specified by:
isDirectory
in interfaceWebResource
- Overrides:
isDirectory
in classEmptyResource
- Returns:
File.isDirectory()
.
-
getName
- Specified by:
getName
in interfaceWebResource
- Overrides:
getName
in classEmptyResource
- Returns:
File.getName()
.
-