public class EarDescriptor
extends java.lang.Object
| Constructor and Description |
|---|
EarDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addWebArchive(java.lang.String webArchiveURI,
java.lang.String contextRoot)
Add a new web archive to this descriptor.
|
static EarDescriptor |
fromInputStream(java.io.InputStream earXmlInputStream)
Create a new EarDescriptor object using the supplied XML file.
|
java.lang.String |
getDisplayName() |
java.lang.String |
getWebArchiveContextRoot(java.lang.String webArchiveURI)
Get the context root of the requested web archive.
|
java.util.Set<java.lang.String> |
getWebArchiveURIs()
Get a set of the URIs of all web archive registered in this descriptor.
|
void |
setDisplayName(java.lang.String displayName) |
public static final EarDescriptor fromInputStream(java.io.InputStream earXmlInputStream) throws IllegalDescriptorFoundException
earXmlInputStream - InputStream containing the XML file.IllegalDescriptorFoundException - Thrown if the descriptor is not valid.public void addWebArchive(java.lang.String webArchiveURI,
java.lang.String contextRoot)
webArchiveURI - URI of the web archive to add.contextRoot - Context root of the archive.public java.lang.String getDisplayName()
public java.lang.String getWebArchiveContextRoot(java.lang.String webArchiveURI)
webArchiveURI - URI of the web archive requested.public java.util.Set<java.lang.String> getWebArchiveURIs()
public void setDisplayName(java.lang.String displayName)
displayName - the displayName to set