|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.jonas_lib.genbase.archive.J2EEArchive
org.objectweb.jonas_lib.genbase.archive.WebApp
A WebApp is a wrapper class around a Web Archive.
| Constructor Summary | |
WebApp(Archive archive)
Create an alone WebApp (not in an ear). |
|
WebApp(Archive archive,
Application app)
Create an embded WebApp. |
|
| Method Summary | |
void |
addClasses(java.io.File classes)
Add Archive classes. |
void |
close()
Close this archive |
Application |
getApplication()
Returns the container application (can be null). |
org.w3c.dom.Document |
getContextDoc()
Returns the Document of the context.xml file |
java.lang.String |
getContextRoot()
|
java.util.Map |
getDescriptors()
Returns a Map of name to Document for each modified Descriptor of the archive. |
java.util.List |
getEjbRefDescs()
Returns the list of ejb-ref elements contained by a module. |
org.w3c.dom.Document |
getJonasWebAppDoc()
Returns the Document of the jonas-web.xml file. |
org.w3c.dom.Document |
getJonasWebservicesDoc()
Returns the Document of the jonas-webservices.xml file. |
java.lang.String |
getName()
Returns the name of the Archive. |
java.util.List |
getServiceDescs()
Returns the list of webservice-description elements contained by a module. |
java.util.List |
getServiceRefDescs()
Returns the list of service-ref elements contained by a module. |
org.w3c.dom.Document |
getWebAppDoc()
Returns the Document of the web.xml file. |
org.w3c.dom.Document |
getWebJettyDoc()
Returns the Document of the web-=jetty.xml file |
org.w3c.dom.Document |
getWebservicesDoc()
Returns the Document of the webservices.xml file. |
void |
initialize()
Initialize the Archive. |
org.w3c.dom.Document |
newContextDoc()
Returns a new Document of the context.xml file |
org.w3c.dom.Document |
newWebJettyDoc()
Returns a new Document of the web-jetty.xml file |
boolean |
omit(java.lang.String name)
Returns true if filename must be omitted in the archive. |
void |
setApplication(Application app)
Set the container application. |
| Methods inherited from class org.objectweb.jonas_lib.genbase.archive.J2EEArchive |
addDirectory, addDirectoryIn, addFile, addFile, addFileIn, getArchive, getContainedFiles, getI18n, getInputStream, getLogger, getManifest, getModuleClassloader, getRootFile, isDTDsAllowed, isPacked, setArchive, setModuleClassloader |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WebApp(Archive archive)
throws GenBaseException
archive - file archive
GenBaseException - When Init fails
public WebApp(Archive archive,
Application app)
throws GenBaseException
archive - Web Archiveapp - container application
GenBaseException - When init fails| Method Detail |
public java.lang.String getName()
getName in interface ArchivegetName in class J2EEArchiveJ2EEArchive.getName()public void setApplication(Application app)
app - the container application.public Application getApplication()
public java.util.List getServiceRefDescs()
getServiceRefDescs in interface WsClientpublic java.util.List getServiceDescs()
getServiceDescs in interface WsEndpointpublic void addClasses(java.io.File classes)
classes - root directory containing classes.public org.w3c.dom.Document getWebAppDoc()
public org.w3c.dom.Document getJonasWebAppDoc()
public org.w3c.dom.Document getWebservicesDoc()
public org.w3c.dom.Document getJonasWebservicesDoc()
public org.w3c.dom.Document newContextDoc()
throws WsGenException
WsGenException - if context.xml Document cannot be produced.
public org.w3c.dom.Document newWebJettyDoc()
throws WsGenException
WsGenException - if context.xml Document cannot be produced.public org.w3c.dom.Document getContextDoc()
public org.w3c.dom.Document getWebJettyDoc()
public java.util.Map getDescriptors()
getDescriptors in class J2EEArchivepublic boolean omit(java.lang.String name)
omit in class J2EEArchivename - filename to be tested
public void initialize()
throws GenBaseException
initialize in class J2EEArchiveGenBaseException - When initialization fails.public java.lang.String getContextRoot()
getContextRoot in interface WsEndpointpublic java.util.List getEjbRefDescs()
getEjbRefDescs in interface EjbRefModulepublic void close()
close in interface Archiveclose in class J2EEArchive
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||