org.jboss.web
Class WebApplication

java.lang.Object
  extended byorg.jboss.web.WebApplication

public class WebApplication
extends java.lang.Object

A WebApplication represents the information for a war deployment.

See Also:
AbstractWebContainer (src)

Constructor Summary
WebApplication()
          Create an empty WebApplication instance
WebApplication(java.lang.String name, java.net.URL url, java.lang.ClassLoader classLoader)
          Create a WebApplication instance with with given name, url and class loader.
WebApplication(WebMetaData (src)  metaData)
          Create a WebApplication instance with with given web-app metadata.
 
Method Summary
 java.lang.Object getAppData()
           
 java.lang.ClassLoader getClassLoader()
          Get the class loader of this WebApplication.
 DeploymentInfo (src) getDeploymentInfo()
           
 WebMetaData (src) getMetaData()
          Getter for property metaData.
 java.lang.String getName()
          Get the name of this WebApplication.
 java.net.URL getURL()
          Get the URL from which this WebApplication was deployed
 void setAppData(java.lang.Object data)
           
 void setClassLoader(java.lang.ClassLoader classLoader)
          Set the class loader of this WebApplication.
 void setDeploymentInfo(DeploymentInfo (src)  warInfo)
           
 void setMetaData(WebMetaData (src)  metaData)
          Setter for property metaData.
 void setName(java.lang.String name)
          Set the name of this WebApplication.
 void setURL(java.net.URL url)
          Set the URL from which this WebApplication was deployed
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebApplication

public WebApplication()
Create an empty WebApplication instance


WebApplication

public WebApplication(WebMetaData (src)  metaData)
Create a WebApplication instance with with given web-app metadata.

Parameters:
metaData - the web-app metadata containing the web.xml and jboss-web.xml descriptor metadata.

WebApplication

public WebApplication(java.lang.String name,
                      java.net.URL url,
                      java.lang.ClassLoader classLoader)
Create a WebApplication instance with with given name, url and class loader.

Parameters:
name - name of this application
url - url where this application was deployed from
classLoader - Class loader of this application
Method Detail

getClassLoader

public java.lang.ClassLoader getClassLoader()
Get the class loader of this WebApplication.

Returns:
The ClassLoader instance of the web application

setClassLoader

public void setClassLoader(java.lang.ClassLoader classLoader)
Set the class loader of this WebApplication.

Parameters:
classLoader - The ClassLoader instance for the web application

getName

public java.lang.String getName()
Get the name of this WebApplication.

Returns:
String name of the web application

setName

public void setName(java.lang.String name)
Set the name of this WebApplication.

Parameters:
name - of the web application

getURL

public java.net.URL getURL()
Get the URL from which this WebApplication was deployed

Returns:
URL where this application was deployed from

setURL

public void setURL(java.net.URL url)
Set the URL from which this WebApplication was deployed

Parameters:
url - URL where this application was deployed from

getMetaData

public WebMetaData (src)  getMetaData()
Getter for property metaData.

Returns:
Value of property metaData.

setMetaData

public void setMetaData(WebMetaData (src)  metaData)
Setter for property metaData.

Parameters:
metaData - New value of property metaData.

getAppData

public java.lang.Object getAppData()

setAppData

public void setAppData(java.lang.Object data)

getDeploymentInfo

public DeploymentInfo (src)  getDeploymentInfo()

setDeploymentInfo

public void setDeploymentInfo(DeploymentInfo (src)  warInfo)

toString

public java.lang.String toString()