public class Archive extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JBI_DESCRIPTOR_SCHEMA
registry schema file
|
static String |
JBI_DESCRIPTOR_SCHEMA_DIR
registry schema subdir in JBI_HOME
|
| Constructor and Description |
|---|
Archive(File archiveZip,
boolean validate)
Create a new Archive object from the specified archive package.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getChildPath(String name)
Returns the path to the specified child archive.
|
String |
getFileName()
Return the original name of the archive file.
|
String |
getJbiName()
Return the name of the archive as specified in jbi.xml.
|
Jbi |
getJbiXml(boolean localized)
Return a reference to the JAXB object model of the archive's
deployment descriptor.
|
String |
getJbiXmlString(boolean localized)
Return the XML String for the JBI XML
|
Calendar |
getJbiXmlTimestamp()
Return the timestamp of the jbi.xml file in the archive package.
|
String |
getPath()
Return the absolute path to the archive file.
|
BigInteger |
getSize()
Return the size of the archive.
|
ArchiveType |
getType()
Return type of archive.
|
Calendar |
getUploadTimestamp()
Return the date that the archive was added to the repository.
|
boolean |
hasChildren()
Indicates whether this archive contains other archives.
|
Iterator |
listChildren()
Lists the names of child archives, if any, contained within this
archive.
|
void |
setJbiName(String jbiName)
Sets the JBI name/id of this archive.
|
void |
setPath(String path)
Sets the path for the archive package.
|
void |
setUploadTimestamp(Calendar timestamp)
Sets the repository upload timestamp.
|
public static final String JBI_DESCRIPTOR_SCHEMA
public static final String JBI_DESCRIPTOR_SCHEMA_DIR
public Archive(File archiveZip, boolean validate) throws IOException, RepositoryException
IOExceptionRepositoryExceptionpublic ArchiveType getType()
public String getJbiName()
public String getFileName()
public String getPath()
public Jbi getJbiXml(boolean localized)
localized - set to true to return the localized
version or false to return the default version.
NOTE: Currently, only the server locale is supported.public String getJbiXmlString(boolean localized)
localized - set to true to return the localized
version or false to return the default version.
NOTE: Currently, only the server locale is supported.public Calendar getUploadTimestamp()
public BigInteger getSize()
public Calendar getJbiXmlTimestamp()
public void setJbiName(String jbiName)
public void setUploadTimestamp(Calendar timestamp)
public void setPath(String path)
public boolean hasChildren()
public Iterator listChildren()
Copyright © 2011-2016 OpenESB Community. All Rights Reserved.