|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.generators.genbase.archive.J2EEArchive
org.ow2.jonas.generators.genbase.archive.WebApp
public class 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(File classes)
Add Archive classes. |
void |
close()
Close this archive |
Application |
getApplication()
Returns the container application (can be null). |
Document |
getContextDoc()
Returns the Document of the context.xml file |
String |
getContextRoot()
|
Map |
getDescriptors()
Returns a Map of name to Document for each modified Descriptor of the archive. |
List |
getEjbRefDescs()
Returns the list of ejb-ref elements contained by a module. |
Document |
getJonasWebAppDoc()
Returns the Document of the jonas-web.xml file. |
Document |
getJonasWebservicesDoc()
Returns the Document of the jonas-webservices.xml file. |
String |
getName()
Returns the name of the Archive. |
List |
getServiceDescs()
Returns the list of webservice-description elements contained by a module. |
List |
getServiceRefDescs()
Returns the list of service-ref elements contained by a module. |
Document |
getWebAppDoc()
Returns the Document of the web.xml file. |
Document |
getWebJettyDoc()
Returns the Document of the web-=jetty.xml file |
Document |
getWebservicesDoc()
Returns the Document of the webservices.xml file. |
void |
initialize()
Initialize the Archive. |
Document |
newContextDoc()
Returns a new Document of the context.xml file |
Document |
newWebJettyDoc()
Returns a new Document of the web-jetty.xml file |
boolean |
omit(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.ow2.jonas.generators.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 String getName()
getName in interface ArchivegetName in class J2EEArchiveJ2EEArchive.getName()public void setApplication(Application app)
app - the container application.public Application getApplication()
public List getServiceRefDescs()
getServiceRefDescs in interface WsClientpublic List getServiceDescs()
getServiceDescs in interface WsEndpointpublic void addClasses(File classes)
classes - root directory containing classes.public Document getWebAppDoc()
public Document getJonasWebAppDoc()
public Document getWebservicesDoc()
public Document getJonasWebservicesDoc()
public Document newContextDoc()
throws GenBaseException
GenBaseException - if context.xml Document cannot be produced.
public Document newWebJettyDoc()
throws GenBaseException
GenBaseException - if context.xml Document cannot be produced.public Document getContextDoc()
public Document getWebJettyDoc()
public Map getDescriptors()
getDescriptors in class J2EEArchivepublic boolean omit(String name)
omit in class J2EEArchivename - filename to be tested
public void initialize()
throws GenBaseException
initialize in class J2EEArchiveGenBaseException - When initialization fails.public String getContextRoot()
getContextRoot in interface WsEndpointpublic 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 | |||||||||