org.apache.catalina.WebResourceSet based on a JAR file that is nested inside a packed WAR file.
This is only intended for internal use within Tomcat and therefore cannot be created via configuration.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final String |
| Access | Constructor and Description |
|---|---|
| public | JarWarResourceSet(WebResourceRoot
The root, String WebResourceRoot this new org. will be added
to.The path within the web application at which this webAppMount, String org.
will be mounted.The absolute path to the WAR file on the file system in which the JAR is located. base, String The path within the WAR file where the JAR file is located. archivePath, String The path within this new internalPath)org. where resources will be
served from. E.g. for a resource JAR, this would be "META-INF/resources"Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| protected WebResource | createArchiveResource(JarEntry jarEntry, String webAppPath, Manifest manifest)
Implements abstract org.
|
| protected Map | getArchiveEntries(boolean
Is this request being make to support a single lookup? If false, a map will always be returned. If
true, implementations may use this as a hint in determining the optimum way to respond. single)Implements abstract org. Obtain the map of entries in the archive. |
| protected JarEntry | getArchiveEntry(String
The path in the archive of the entry required pathInArchive)Implements abstract org. Obtain a single entry from the archive. |
| protected void | initInternal()
Implements abstract org. Sub-classes implement this method to perform any instance initialisation required. |
| protected boolean | isMultiRelease()
Implements abstract org.
|
| protected void |
| archivePath | back to summary |
|---|---|
| private final String archivePath | |
| JarWarResourceSet | back to summary |
|---|---|
| public JarWarResourceSet(WebResourceRoot root, String webAppMount, String base, String archivePath, String internalPath) throws IllegalArgumentException Creates a new
| |
| createArchiveResource | back to summary |
|---|---|
| protected WebResource createArchiveResource(JarEntry jarEntry, String webAppPath, Manifest manifest) Implements abstract org.
| |
| getArchiveEntries | back to summary |
|---|---|
| protected Map Implements abstract org. Doc from org. Obtain the map of entries in the archive. May return null in which case JarWar can't optimise for a single resource so the Map is always returned.
| |
| getArchiveEntry | back to summary |
|---|---|
| protected JarEntry getArchiveEntry(String pathInArchive) Implements abstract org. Doc from org. Obtain a single entry from the archive. For performance reasons,
Should never be called since | |
| initInternal | back to summary |
|---|---|
| protected void initInternal() throws LifecycleException Implements abstract org. Doc from org. Sub-classes implement this method to perform any instance initialisation required.
| |
| isMultiRelease | back to summary |
|---|---|
| protected boolean isMultiRelease() Implements abstract org.
| |
| processArchivesEntriesForMultiRelease | back to summary |
|---|---|
| protected void processArchivesEntriesForMultiRelease() | |
| Modifier and Type | Field and Description |
|---|---|
| private final JarEntry | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public JarEntry | |
| public int |
| jarEntry | back to summary |
|---|---|
| private final JarEntry jarEntry | |
| version | back to summary |
|---|---|
| private final int version | |
| VersionedJarEntry | back to summary |
|---|---|
| pack-priv VersionedJarEntry(int version, JarEntry jarEntry) | |
| getJarEntry | back to summary |
|---|---|
| public JarEntry getJarEntry() | |
| getVersion | back to summary |
|---|---|
| public int getVersion() | |