public abstract class OSGiJavaEEArchive
extends com.sun.enterprise.deploy.shared.AbstractReadableArchive
implements org.glassfish.api.deployment.archive.ReadableArchive
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
OSGiJavaEEArchive.ArchiveEntry |
protected static interface |
OSGiJavaEEArchive.BCPEntry |
protected class |
OSGiJavaEEArchive.DirBCPEntry |
protected class |
OSGiJavaEEArchive.EffectiveBCP |
protected class |
OSGiJavaEEArchive.JarBCPEntry |
| Modifier and Type | Field and Description |
|---|---|
protected Map<org.osgi.framework.Bundle,OSGiBundleArchive> |
archives |
protected static String |
DOT |
protected org.osgi.framework.Bundle[] |
fragments |
protected org.osgi.framework.Bundle |
host |
protected static String |
JAR_EXT |
| Constructor and Description |
|---|
OSGiJavaEEArchive(org.osgi.framework.Bundle[] fragments,
org.osgi.framework.Bundle host) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
delete() |
Enumeration<String> |
entries() |
Enumeration<String> |
entries(String prefix) |
boolean |
exists() |
boolean |
exists(String name) |
protected OSGiBundleArchive |
getArchive(org.osgi.framework.Bundle b) |
long |
getArchiveSize() |
Collection<String> |
getDirectories() |
protected OSGiJavaEEArchive.EffectiveBCP |
getEffectiveBCP() |
protected Map<String,OSGiJavaEEArchive.ArchiveEntry> |
getEntries() |
InputStream |
getEntry(String name) |
long |
getEntrySize(String name) |
Manifest |
getManifest() |
String |
getName() |
org.glassfish.api.deployment.archive.ReadableArchive |
getParentArchive() |
org.glassfish.api.deployment.archive.ReadableArchive |
getSubArchive(String name) |
URI |
getURI() |
protected abstract void |
init() |
boolean |
isDirectory(String name) |
void |
open(URI uri) |
boolean |
renameTo(String name) |
void |
setParentArchive(org.glassfish.api.deployment.archive.ReadableArchive parentArchive) |
addArchiveMetaData, getArchiveMetaData, getExtraData, removeArchiveMetaData, removeExtraData, setExtraDataprotected org.osgi.framework.Bundle host
protected org.osgi.framework.Bundle[] fragments
protected static final String JAR_EXT
protected static final String DOT
protected final Map<org.osgi.framework.Bundle,OSGiBundleArchive> archives
public OSGiJavaEEArchive(org.osgi.framework.Bundle[] fragments,
org.osgi.framework.Bundle host)
protected OSGiBundleArchive getArchive(org.osgi.framework.Bundle b)
protected Map<String,OSGiJavaEEArchive.ArchiveEntry> getEntries()
protected abstract void init()
protected OSGiJavaEEArchive.EffectiveBCP getEffectiveBCP()
public InputStream getEntry(String name) throws IOException
getEntry in interface org.glassfish.api.deployment.archive.ReadableArchiveIOExceptionpublic boolean exists(String name) throws IOException
exists in interface org.glassfish.api.deployment.archive.ReadableArchiveIOExceptionpublic long getEntrySize(String name)
getEntrySize in interface org.glassfish.api.deployment.archive.ReadableArchivepublic void open(URI uri) throws IOException
open in interface org.glassfish.api.deployment.archive.ReadableArchiveIOExceptionpublic org.glassfish.api.deployment.archive.ReadableArchive getSubArchive(String name) throws IOException
getSubArchive in interface org.glassfish.api.deployment.archive.ReadableArchiveIOExceptionpublic boolean exists()
exists in interface org.glassfish.api.deployment.archive.ReadableArchivepublic boolean delete()
delete in interface org.glassfish.api.deployment.archive.ReadableArchivepublic boolean renameTo(String name)
renameTo in interface org.glassfish.api.deployment.archive.ReadableArchivepublic void setParentArchive(org.glassfish.api.deployment.archive.ReadableArchive parentArchive)
setParentArchive in interface org.glassfish.api.deployment.archive.ReadableArchivesetParentArchive in class com.sun.enterprise.deploy.shared.AbstractReadableArchivepublic org.glassfish.api.deployment.archive.ReadableArchive getParentArchive()
getParentArchive in interface org.glassfish.api.deployment.archive.ReadableArchivegetParentArchive in class com.sun.enterprise.deploy.shared.AbstractReadableArchivepublic void close()
throws IOException
close in interface org.glassfish.api.deployment.archive.ArchiveIOExceptionpublic Enumeration<String> entries()
entries in interface org.glassfish.api.deployment.archive.Archivepublic Enumeration<String> entries(String prefix)
entries in interface org.glassfish.api.deployment.archive.Archivepublic Collection<String> getDirectories() throws IOException
getDirectories in interface org.glassfish.api.deployment.archive.ArchiveIOExceptionpublic boolean isDirectory(String name)
isDirectory in interface org.glassfish.api.deployment.archive.Archivepublic Manifest getManifest() throws IOException
getManifest in interface org.glassfish.api.deployment.archive.ArchiveIOExceptionpublic URI getURI()
getURI in interface org.glassfish.api.deployment.archive.Archivepublic long getArchiveSize()
throws SecurityException
getArchiveSize in interface org.glassfish.api.deployment.archive.ArchiveSecurityExceptionpublic String getName()
getName in interface org.glassfish.api.deployment.archive.ArchiveCopyright © 2017–2019 Eclipse Foundation. All rights reserved.