|
||||||||||
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. |
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. |
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 failspublic WebApp(Archive archive, Application app) throws GenBaseException
archive
- Web Archiveapp
- container application
GenBaseException
- When init failsMethod Detail |
public java.lang.String getName()
getName
in interface Archive
getName
in class J2EEArchive
J2EEArchive.getName()
public void setApplication(Application app)
app
- the container application.public Application getApplication()
public java.util.List getServiceRefDescs()
getServiceRefDescs
in interface WsClient
public java.util.List getServiceDescs()
getServiceDescs
in interface WsEndpoint
public 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 getContextDoc()
public org.w3c.dom.Document getWebJettyDoc()
public java.util.Map getDescriptors()
getDescriptors
in class J2EEArchive
public boolean omit(java.lang.String name)
omit
in class J2EEArchive
name
- filename to be tested
public void initialize() throws GenBaseException
initialize
in class J2EEArchive
GenBaseException
- When initialization fails.public java.lang.String getContextRoot()
getContextRoot
in interface WsEndpoint
public java.util.List getEjbRefDescs()
getEjbRefDescs
in interface EjbRefModule
public void close()
close
in interface Archive
close
in class J2EEArchive
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |