Top Fields Constructors Methods
org.apache.catalina.webresources

public Class VirtualResource

extends EmptyResource
Class Inheritance
Imports
org.apache.catalina.WebResourceRoot

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public
VirtualResource(WebResourceRoot root, String webAppPath, String name)

Method Summary

Modifier and TypeMethod and Description
public String
public boolean
public boolean
isVirtual()

Overrides org.apache.catalina.webresources.EmptyResource.isVirtual.

Implements org.apache.catalina.WebResource.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.

Inherited from org.apache.catalina.webresources.EmptyResource:
canReaddeleteexistsgetCanonicalPathgetCertificatesgetCodeBasegetContentgetContentLengthgetCreationgetETaggetInputStreamgetLastModifiedgetLastModifiedHttpgetManifestgetMimeTypegetURLgetWebappPathgetWebResourceRootisFilesetMimeType

Field Detail

nameback to summary
private final String name

Constructor Detail

VirtualResourceback to summary
public VirtualResource(WebResourceRoot root, String webAppPath, String name)

Method Detail

getNameback to summary
public String getName()

Overrides org.apache.catalina.webresources.EmptyResource.getName.

Implements org.apache.catalina.WebResource.getName.

Returns:String

Doc from org.apache.catalina.WebResource.getName.

java.io.File#getName().

Annotations
@Override
isDirectoryback to summary
public boolean isDirectory()

Overrides org.apache.catalina.webresources.EmptyResource.isDirectory.

Implements org.apache.catalina.WebResource.isDirectory.

Returns:boolean

Doc from org.apache.catalina.WebResource.isDirectory.

java.io.File#isDirectory().

Annotations
@Override
isVirtualback to summary
public boolean isVirtual()

Overrides org.apache.catalina.webresources.EmptyResource.isVirtual.

Implements org.apache.catalina.WebResource.isVirtual.

Doc from org.apache.catalina.WebResource.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. 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.

Returns:boolean

true for a virtual resource

Annotations
@Override