| Modifier and Type | Field and Description |
|---|---|
| private JarFile | |
| protected Map | |
| protected final Object | |
| private long | |
| private URL | |
| private String | |
| private JarContents | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected abstract WebResource | |
| public void | gc()
Implements org. Implementations may cache some information to improve performance. |
| protected abstract Map | Returns: The archives entries mapped to their names or null ifgetArchiveEntry(String) should be used.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)Obtain the map of entries in the archive. |
| protected abstract JarEntry | Returns: The specified archive entry or null if it does not existThe path in the archive of the entry required pathInArchive)Obtain a single entry from the archive. |
| public final URL | getBaseUrl()
Implements org. Obtain the base URL for this set of resources. |
| protected final String | |
| public final WebResource | getResource(String
The path for the resource of interest relative to the root
of the web application. It must start with '/'. path)Implements org. Obtain the object that represents the resource at the given path. |
| protected abstract boolean | |
| public final boolean | isReadOnly()
Implements org. Obtains the current value of the read-only setting for this set of resources. |
| public final String[] | list(String
The path for the resource of interest relative to the root
of the web application. It must start with '/'. path)Implements org. Obtain the list of the names of all of the files and directories located in the specified directory. |
| public final Set | listWebAppPaths(String
The path for the resource of interest relative to the root
of the web application. It must start with '/'. path)Implements org. Obtain the Set of the web applications pathnames of all of the files and directories located in the specified directory. |
| public final boolean | mkdir(String
The path for the new resource to create relative to the root
of the web application. It must start with '/'. path)Implements org. Create a new directory at the given path. |
| protected JarFile | |
| protected final void | |
| public void | setReadOnly(boolean
true if this set of resources should be
configured to be read-onlyImplements org. Configures whether or not this set of resources is read-only. |
| public final boolean | write(String
The path to be used for the new Resource. It is relative
to the root of the web application and must start with
'/'. path, InputStream The InputStream that will provide the content for the
new Resource. is, boolean If overwrite)true and the resource already exists it
will be overwritten. If false and the
resource already exists the write will fail.Implements org. Create a new resource at the requested path using the provided InputStream. |
| archive | back to summary |
|---|---|
| private JarFile archive | |
| archiveEntries | back to summary |
|---|---|
| protected Map<String, JarEntry> archiveEntries | |
| archiveLock | back to summary |
|---|---|
| protected final Object archiveLock | |
| archiveUseCount | back to summary |
|---|---|
| private long archiveUseCount | |
| baseUrl | back to summary |
|---|---|
| private URL baseUrl | |
| baseUrlString | back to summary |
|---|---|
| private String baseUrlString | |
| jarContents | back to summary |
|---|---|
| private JarContents jarContents | |
| retainBloomFilterForArchives | back to summary |
|---|---|
| private boolean retainBloomFilterForArchives | |
| AbstractArchiveResourceSet | back to summary |
|---|---|
| public AbstractArchiveResourceSet() | |
| closeJarFile | back to summary |
|---|---|
| protected void closeJarFile() | |
| createArchiveResource | back to summary |
|---|---|
| protected abstract WebResource createArchiveResource(JarEntry jarEntry, String webAppPath, Manifest manifest) | |
| gc | back to summary |
|---|---|
| public void gc() Implements org. Doc from org. Implementations may cache some information to improve performance. This method triggers the clean-up of those resources.
| |
| getArchiveEntries | back to summary |
|---|---|
| protected abstract Map Obtain the map of entries in the archive. May return null in which case
| |
| getArchiveEntry | back to summary |
|---|---|
| protected abstract JarEntry getArchiveEntry(String pathInArchive) Obtain a single entry from the archive. For performance reasons, | |
| getBaseUrl | back to summary |
|---|---|
| public final URL getBaseUrl() Implements org. Doc from org. Obtain the base URL for this set of resources. One of the uses of this is to grant read permissions to the resources when running under a security manager. | |
| getBaseUrlString | back to summary |
|---|---|
| protected final String getBaseUrlString() | |
| getResource | back to summary |
|---|---|
| public final WebResource getResource(String path) Implements org. Doc from org. Obtain the object that represents the resource at the given path. Note the resource at that path may not exist.
| |
| isMultiRelease | back to summary |
|---|---|
| protected abstract boolean isMultiRelease() | |
| isReadOnly | back to summary |
|---|---|
| public final boolean isReadOnly() Implements org. Doc from org. Obtains the current value of the read-only setting for this set of resources.
| |
| list | back to summary |
|---|---|
| public final String[] list(String path) Implements org. Doc from org. Obtain the list of the names of all of the files and directories located in the specified directory. | |
| listWebAppPaths | back to summary |
|---|---|
| public final Set Implements org. Doc from org. Obtain the Set of the web applications pathnames of all of the files and directories located in the specified directory. Paths representing directories will end with a "/" character. | |
| mkdir | back to summary |
|---|---|
| public final boolean mkdir(String path) Implements org. Doc from org. Create a new directory at the given path. | |
| openJarFile | back to summary |
|---|---|
protected JarFile openJarFile() throws IOException
| |
| setBaseUrl | back to summary |
|---|---|
| protected final void setBaseUrl(URL baseUrl) | |
| setReadOnly | back to summary |
|---|---|
| public void setReadOnly(boolean readOnly) Implements org. Doc from org. Configures whether or not this set of resources is read-only.
| |
| write | back to summary |
|---|---|
| public final boolean write(String path, InputStream is, boolean overwrite) Implements org. Doc from org. Create a new resource at the requested path using the provided InputStream.
| |