Class AbstractSingleArchiveResource
java.lang.Object
org.apache.catalina.webresources.AbstractResource
org.apache.catalina.webresources.AbstractArchiveResource
org.apache.catalina.webresources.AbstractSingleArchiveResource
- All Implemented Interfaces:
WebResource
- Direct Known Subclasses:
JarResource, WarResource
Abstract
WebResource implementation for resources within a single archive (e.g., a JAR file).-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractArchiveResource
AbstractArchiveResource.JarInputStreamWrapper -
Field Summary
Fields inherited from class AbstractResource
sm -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSingleArchiveResource(AbstractArchiveResourceSet archiveResourceSet, String webAppPath, String baseUrl, JarEntry jarEntry, String codeBaseUrl) Constructs a new AbstractSingleArchiveResource. -
Method Summary
Modifier and TypeMethodDescriptionGets the JAR input stream wrapper for this resource.Methods inherited from class AbstractArchiveResource
canRead, delete, doGetInputStream, exists, getArchiveResourceSet, getBase, getBaseUrl, getCanonicalPath, getCertificates, getCodeBase, getContent, getContentLength, getCreation, getLastModified, getManifest, getName, getResource, getURL, isDirectory, isFile, isVirtualMethods inherited from class AbstractResource
getETag, getInputStream, getLastModifiedHttp, getLog, getMimeType, getStrongETag, getWebappPath, getWebResourceRoot, setMimeType
-
Constructor Details
-
AbstractSingleArchiveResource
protected AbstractSingleArchiveResource(AbstractArchiveResourceSet archiveResourceSet, String webAppPath, String baseUrl, JarEntry jarEntry, String codeBaseUrl) Constructs a new AbstractSingleArchiveResource.- Parameters:
archiveResourceSet- The archive resource setwebAppPath- The web app pathbaseUrl- The base URLjarEntry- The JAR entrycodeBaseUrl- The code base URL
-
-
Method Details
-
getJarInputStreamWrapper
Gets the JAR input stream wrapper for this resource.- Specified by:
getJarInputStreamWrapperin classAbstractArchiveResource- Returns:
- the JAR input stream wrapper, or
nullif an error occurs
-