public class VirtualResource extends EmptyResource
Constructor and Description |
---|
VirtualResource(WebResourceRoot root,
java.lang.String webAppPath,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.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, setMimeType
public VirtualResource(WebResourceRoot root, java.lang.String webAppPath, java.lang.String name)
public boolean isVirtual()
WebResource
WebResourceSet
. 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 WebResource
isVirtual
in class EmptyResource
public boolean isDirectory()
WebResource
File.isDirectory()
.isDirectory
in interface WebResource
isDirectory
in class EmptyResource
public java.lang.String getName()
WebResource
File.getName()
.getName
in interface WebResource
getName
in class EmptyResource
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.