Package org.apache.catalina.webresources
Class VirtualResource
- java.lang.Object
- 
- org.apache.catalina.webresources.EmptyResource
- 
- org.apache.catalina.webresources.VirtualResource
 
 
- 
- All Implemented Interfaces:
- WebResource
 
 public class VirtualResource extends EmptyResource 
- 
- 
Constructor SummaryConstructors Constructor Description VirtualResource(WebResourceRoot root, java.lang.String webAppPath, java.lang.String name)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()booleanisDirectory()booleanisVirtual()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.EmptyResourcecanRead, delete, exists, getCanonicalPath, getCertificates, getCodeBase, getContent, getContentLength, getCreation, getETag, getInputStream, getLastModified, getLastModifiedHttp, getManifest, getMimeType, getURL, getWebappPath, getWebResourceRoot, isFile, setMimeType
 
- 
 
- 
- 
- 
Constructor Detail- 
VirtualResourcepublic VirtualResource(WebResourceRoot root, java.lang.String webAppPath, java.lang.String name) 
 
- 
 - 
Method Detail- 
isVirtualpublic boolean isVirtual() Description copied from interface:WebResourceIndicates 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:
- isVirtualin interface- WebResource
- Overrides:
- isVirtualin class- EmptyResource
- Returns:
- truefor a virtual resource
 
 - 
isDirectorypublic boolean isDirectory() - Specified by:
- isDirectoryin interface- WebResource
- Overrides:
- isDirectoryin class- EmptyResource
- Returns:
- File.isDirectory().
 
 - 
getNamepublic java.lang.String getName() - Specified by:
- getNamein interface- WebResource
- Overrides:
- getNamein class- EmptyResource
- Returns:
- File.getName().
 
 
- 
 
-