Top Description Constructors Methods
org.apache.catalina.webresources

public Class JarResourceSet

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

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

Constructor Summary

AccessConstructor and Description
public
JarResourceSet()

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

public
JarResourceSet(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 JAR file on the file system from which the resources will be served.
base
,
String
The path within this new org.apache.catalina.WebResourceSet where resources will be served from. E.g. for a resource JAR, this would be "META-INF/resources"
internalPath
)

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

Method Summary

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

Constructor Detail

JarResourceSetback to summary
public JarResourceSet()

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

JarResourceSetback to summary
public JarResourceSet(WebResourceRoot root, String webAppMount, String base, String internalPath) throws IllegalArgumentException

Creates a new org.apache.catalina.WebResourceSet based on a JAR 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 JAR file on the file system from which the resources will be served.

internalPath:String

The path within this new org.apache.catalina.WebResourceSet where resources will be served from. E.g. for a resource JAR, this would be "META-INF/resources"

Exceptions
IllegalArgumentException:
if the webAppMount or internalPath 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