org.ow2.jonas.deployment.web.xml
Class JonasWebApp

java.lang.Object
  extended by org.ow2.jonas.deployment.common.xml.AbsElement
      extended by org.ow2.jonas.deployment.common.xml.AbsJonasEnvironmentElement
          extended by org.ow2.jonas.deployment.web.xml.JonasWebApp
All Implemented Interfaces:
Serializable, Element, JonasJndiEnvRefsGroupXml, TopLevelElement

public class JonasWebApp
extends AbsJonasEnvironmentElement
implements TopLevelElement

This class defines the implementation of the element jonas-web-app.

Author:
Florent Benoit
See Also:
Serialized Form

Field Summary
static String JONAS_WEBAPP_ELEMENT
          jonas-web-app element XML header
 
Constructor Summary
JonasWebApp()
          Constructor : build a new WebApp object
 
Method Summary
 void addJonasMessageDestination(JonasMessageDestination jonasMessageDestination)
          Add a new jonas-message-destination element to this object
 void addServlet(JonasServlet jonasServlet)
          Add a new servlet element to this object
 String getContextRoot()
           
 String getHeader()
           
 String getHost()
           
 String getJava2DelegationModel()
           
 JLinkedList getJonasMessageDestinationList()
           
 String getPort()
           
 JLinkedList getServletList()
           
 void setContextRoot(String contextRoot)
          Set the context-root element of this object
 void setHeader(String header)
           
 void setHost(String host)
          Set the host element of this object
 void setJava2DelegationModel(String java2DelegationModel)
          Set the java 2 delegation model element of this object
 void setJonasMessageDestinationList(JLinkedList jonasMessageDestinationList)
          Set the jonas-message-destination
 void setPort(String port)
          Set the port element of this object
 void setServletList(JLinkedList servletList)
          Set the servlet
 String toXML(int indent)
          Represents this element by it's XML description.
 
Methods inherited from class org.ow2.jonas.deployment.common.xml.AbsJonasEnvironmentElement
addJonasEjbRef, addJonasMessageDestinationRef, addJonasResource, addJonasResourceEnv, addJonasServiceRef, getJonasEjbRefList, getJonasMessageDestinationRefList, getJonasResourceEnvList, getJonasResourceList, getJonasServiceRefList
 
Methods inherited from class org.ow2.jonas.deployment.common.xml.AbsElement
indent, toString, toXML, xmlAttribute, xmlElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JONAS_WEBAPP_ELEMENT

public static final String JONAS_WEBAPP_ELEMENT
jonas-web-app element XML header

Constructor Detail

JonasWebApp

public JonasWebApp()
Constructor : build a new WebApp object

Method Detail

setHost

public void setHost(String host)
Set the host element of this object

Parameters:
host - host element of this object

setContextRoot

public void setContextRoot(String contextRoot)
Set the context-root element of this object

Parameters:
contextRoot - context-root element of this object

setPort

public void setPort(String port)
Set the port element of this object

Parameters:
port - port element of this object

setJava2DelegationModel

public void setJava2DelegationModel(String java2DelegationModel)
Set the java 2 delegation model element of this object

Parameters:
java2DelegationModel - java2-delegation-model element of this object

setJonasMessageDestinationList

public void setJonasMessageDestinationList(JLinkedList jonasMessageDestinationList)
Set the jonas-message-destination

Parameters:
jonasMessageDestinationList - jonasMessageDestination

setServletList

public void setServletList(JLinkedList servletList)
Set the servlet

Parameters:
servletList - servletList

addJonasMessageDestination

public void addJonasMessageDestination(JonasMessageDestination jonasMessageDestination)
Add a new jonas-message-destination element to this object

Parameters:
jonasMessageDestination - the jonas-message-destination object

addServlet

public void addServlet(JonasServlet jonasServlet)
Add a new servlet element to this object

Parameters:
jonasServlet - the servlet object

getHost

public String getHost()
Returns:
the host element

getContextRoot

public String getContextRoot()
Returns:
the context-root element

getPort

public String getPort()
Returns:
the port element

getJava2DelegationModel

public String getJava2DelegationModel()
Returns:
the java2-delegation-model element

getJonasMessageDestinationList

public JLinkedList getJonasMessageDestinationList()
Returns:
the list of all jonas-message-destination elements

getServletList

public JLinkedList getServletList()
Returns:
the list of all servlet elements

toXML

public String toXML(int indent)
Represents this element by it's XML description.

Specified by:
toXML in interface Element
Specified by:
toXML in class AbsElement
Parameters:
indent - use this indent for prexifing XML representation.
Returns:
the XML description of this object.

getHeader

public String getHeader()
Returns:
the header.

setHeader

public void setHeader(String header)
Parameters:
header - The header to set.


Copyright © 2010 OW2 Consortium. All Rights Reserved.