|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.web.WebApplication
public class WebApplication
A WebApplication represents the information for a war deployment.
AbstractWebContainer
Field Summary | |
---|---|
protected String |
canonicalName
|
protected ClassLoader |
classLoader
Class loader of this application |
protected Object |
data
Arbitary data object for storing application specific data |
protected String |
defaultSecurityDomain
The default security-domain name to use |
protected Object |
deployerConfig
Deployer config bean |
protected String |
domain
The jmx domain of the web container |
protected boolean |
java2ClassLoadingCompliance
The parent class loader first model flag |
protected boolean |
lenientEjbLink
If true, ejb-links that don't resolve don't cause an error (fallback to jndi-name) |
protected org.jboss.metadata.web.jboss.JBossWebMetaData |
metaData
The web app metadata from the web.xml and jboss-web.xml descriptors |
protected String |
name
name of this application |
protected boolean |
unpackWars
A flag indicating if war archives should be unpacked |
protected URL |
url
URL where this application was deployed from |
protected HashMap |
vhostToHostNames
|
Constructor Summary | |
---|---|
WebApplication()
Create an empty WebApplication instance |
|
WebApplication(org.jboss.metadata.web.jboss.JBossWebMetaData metaData)
Create a WebApplication instance with with given web-app metadata. |
|
WebApplication(String name,
URL url,
ClassLoader classLoader)
Create a WebApplication instance with with given name, url and class loader. |
Method Summary | |
---|---|
Object |
getAppData()
|
String |
getCanonicalName()
|
ClassLoader |
getClassLoader()
Get the class loader of this WebApplication. |
String |
getDefaultSecurityDomain()
Get the default security domain implementation to use if a war does not declare a security-domain. |
Object |
getDeployerConfig()
|
org.jboss.deployers.structure.spi.DeploymentUnit |
getDeploymentUnit()
|
String |
getDomain()
|
boolean |
getJava2ClassLoadingCompliance()
Get the flag indicating if the normal Java2 parent first class loading model should be used over the servlet 2.3 web container first model. |
boolean |
getLenientEjbLink()
Get the flag indicating if ejb-link errors should be ignored in favour of trying the jndi-name in jboss-web.xml |
org.jboss.metadata.web.jboss.JBossWebMetaData |
getMetaData()
Getter for property metaData. |
String |
getName()
Get the name of this WebApplication. |
boolean |
getUnpackWars()
Get the flag indicating if war archives should be unpacked. |
URL |
getURL()
Get the URL from which this WebApplication was deployed |
Map |
getVhostToHostNames()
|
void |
setAppData(Object data)
|
void |
setCanonicalName(String canonicalName)
|
void |
setClassLoader(ClassLoader classLoader)
Set the class loader of this WebApplication. |
void |
setDefaultSecurityDomain(String defaultSecurityDomain)
Set the default security domain implementation to use if a war does not declare a security-domain. |
void |
setDeployerConfig(Object config)
|
void |
setDeploymentUnit(org.jboss.deployers.structure.spi.DeploymentUnit unit)
|
void |
setDomain(String domain)
|
void |
setJava2ClassLoadingCompliance(boolean flag)
Set the flag indicating if the normal Java2 parent first class loading model should be used over the servlet 2.3 web container first model. |
void |
setLenientEjbLink(boolean flag)
Set the flag indicating if ejb-link errors should be ignored in favour of trying the jndi-name in jboss-web.xml |
void |
setMetaData(org.jboss.metadata.web.jboss.JBossWebMetaData metaData)
Setter for property metaData. |
void |
setName(String name)
Set the name of this WebApplication. |
void |
setUnpackWars(boolean flag)
Get the flag indicating if war archives should be unpacked. |
void |
setURL(URL url)
Set the URL from which this WebApplication was deployed |
void |
setVhostToHostNames(Map map)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ClassLoader classLoader
protected String name
protected String canonicalName
protected URL url
protected org.jboss.metadata.web.jboss.JBossWebMetaData metaData
protected Object data
protected String domain
protected boolean java2ClassLoadingCompliance
protected boolean unpackWars
protected boolean lenientEjbLink
protected String defaultSecurityDomain
protected HashMap vhostToHostNames
protected Object deployerConfig
Constructor Detail |
---|
public WebApplication()
public WebApplication(org.jboss.metadata.web.jboss.JBossWebMetaData metaData)
metaData
- the web-app metadata containing the web.xml and
jboss-web.xml descriptor metadata.public WebApplication(String name, URL url, ClassLoader classLoader)
name
- name of this applicationurl
- url where this application was deployed fromclassLoader
- Class loader of this applicationMethod Detail |
---|
public org.jboss.deployers.structure.spi.DeploymentUnit getDeploymentUnit()
public void setDeploymentUnit(org.jboss.deployers.structure.spi.DeploymentUnit unit)
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
classLoader
- The ClassLoader instance for the web applicationpublic String getName()
public void setName(String name)
name
- of the web applicationpublic String getCanonicalName()
public void setCanonicalName(String canonicalName)
public URL getURL()
public void setURL(URL url)
url
- URL where this application was deployed frompublic org.jboss.metadata.web.jboss.JBossWebMetaData getMetaData()
public void setMetaData(org.jboss.metadata.web.jboss.JBossWebMetaData metaData)
metaData
- New value of property metaData.public Object getAppData()
public void setAppData(Object data)
public String getDomain()
public void setDomain(String domain)
public boolean getJava2ClassLoadingCompliance()
public void setJava2ClassLoadingCompliance(boolean flag)
flag
- true for parent first, false for the servlet 2.3 modelpublic boolean getUnpackWars()
public void setUnpackWars(boolean flag)
flag
- , true is war archives should be unpackedpublic boolean getLenientEjbLink()
boolean
valuepublic void setLenientEjbLink(boolean flag)
public String getDefaultSecurityDomain()
public void setDefaultSecurityDomain(String defaultSecurityDomain)
defaultSecurityDomain
- - jndi name of the security domain binding to
use.public Map getVhostToHostNames()
public void setVhostToHostNames(Map map)
public Object getDeployerConfig()
public void setDeployerConfig(Object config)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |