Top Description Constructors Methods
org.apache.catalina.webresources

public Class WarResourceSet

extends AbstractSingleArchiveResourceSet
Class Inheritance
Imports
java.util.jar.JarEntry, .Manifest, org.apache.catalina.WebResource, .WebResourceRoot

Represents a org.apache.catalina.WebResourceSet based on a WAR file.

Constructor Summary

AccessConstructor and Description
public
WarResourceSet()

A no argument constructor is required for this to work with the digester.

public
WarResourceSet(WebResourceRoot root, String
The path within the web application at which this org.apache.catalina.WebResourceSet will be mounted.
webAppMount
,
String
The absolute path to the WAR file on the file system from which the resources will be served.
base
)

Creates a new org.apache.catalina.WebResourceSet based on a WAR file.

Method Summary

Modifier and TypeMethod and Description
protected WebResource
Inherited from org.apache.catalina.webresources.AbstractSingleArchiveResourceSet:
getArchiveEntriesgetArchiveEntryinitInternalisMultiRelease

Constructor Detail

WarResourceSetback to summary
public WarResourceSet()

A no argument constructor is required for this to work with the digester.

WarResourceSetback to summary
public WarResourceSet(WebResourceRoot root, String webAppMount, String base) throws IllegalArgumentException

Creates a new org.apache.catalina.WebResourceSet based on a WAR file.

Parameters
root:WebResourceRoot

The WebResourceRoot this new org.apache.catalina.WebResourceSet will be added to.

webAppMount:String

The path within the web application at which this org.apache.catalina.WebResourceSet will be mounted.

base:String

The absolute path to the WAR file on the file system from which the resources will be served.

Exceptions
IllegalArgumentException:
if the webAppMount is not valid (valid paths must start with '/')

Method Detail

createArchiveResourceback to summary
protected WebResource createArchiveResource(JarEntry jarEntry, String webAppPath, Manifest manifest)

Implements abstract org.apache.catalina.webresources.AbstractArchiveResourceSet.createArchiveResource.

Annotations
@Override