Package org.apache.catalina.webresources
Class JarWarResource
- java.lang.Object
-
- org.apache.catalina.webresources.AbstractResource
-
- org.apache.catalina.webresources.AbstractArchiveResource
-
- org.apache.catalina.webresources.JarWarResource
-
- All Implemented Interfaces:
WebResource
public class JarWarResource extends AbstractArchiveResource
Represents a single resource (file or directory) that is located within a JAR that in turn is located in a WAR file.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.catalina.webresources.AbstractArchiveResource
AbstractArchiveResource.JarInputStreamWrapper
-
-
Field Summary
-
Fields inherited from class org.apache.catalina.webresources.AbstractResource
sm
-
-
Constructor Summary
Constructors Constructor Description JarWarResource(AbstractArchiveResourceSet archiveResourceSet, java.lang.String webAppPath, java.lang.String baseUrl, java.util.jar.JarEntry jarEntry, java.lang.String archivePath)Constructs a new JarWarResource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractArchiveResource.JarInputStreamWrappergetJarInputStreamWrapper()Returns a wrapper for the input stream of this resource.protected LoggetLog()Gets the logger for this resource.-
Methods inherited from class org.apache.catalina.webresources.AbstractArchiveResource
canRead, delete, doGetInputStream, exists, getArchiveResourceSet, getBase, getBaseUrl, getCanonicalPath, getCertificates, getCodeBase, getContent, getContentLength, getCreation, getLastModified, getManifest, getName, getResource, getURL, isDirectory, isFile, isVirtual
-
Methods inherited from class org.apache.catalina.webresources.AbstractResource
getETag, getInputStream, getLastModifiedHttp, getMimeType, getStrongETag, getWebappPath, getWebResourceRoot, setMimeType
-
-
-
-
Constructor Detail
-
JarWarResource
public JarWarResource(AbstractArchiveResourceSet archiveResourceSet, java.lang.String webAppPath, java.lang.String baseUrl, java.util.jar.JarEntry jarEntry, java.lang.String archivePath)
Constructs a new JarWarResource.- Parameters:
archiveResourceSet- the archive resource setwebAppPath- the web application pathbaseUrl- the base URLjarEntry- the JAR entryarchivePath- the path to the archive within the WAR
-
-
Method Detail
-
getJarInputStreamWrapper
protected AbstractArchiveResource.JarInputStreamWrapper getJarInputStreamWrapper()
Description copied from class:AbstractArchiveResourceReturns a wrapper for the input stream of this resource.- Specified by:
getJarInputStreamWrapperin classAbstractArchiveResource- Returns:
- a wrapper for the input stream of this resource
-
getLog
protected Log getLog()
Description copied from class:AbstractResourceGets the logger for this resource.- Specified by:
getLogin classAbstractResource- Returns:
- the logger
-
-