|
||||||||||
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
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.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 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 List getServiceRefDescs()
getServiceRefDescs
in interface WsClient
public List getServiceDescs()
getServiceDescs
in interface WsEndpoint
public 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 J2EEArchive
public boolean omit(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 String getContextRoot()
getContextRoot
in interface WsEndpoint
public 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 |