org.objectweb.jonas_web.deployment.xml
Class WebApp

java.lang.Object
  extended by org.objectweb.jonas_lib.deployment.xml.AbsElement
      extended by org.objectweb.jonas_lib.deployment.xml.AbsDescriptionElement
          extended by org.objectweb.jonas_lib.deployment.xml.AbsEnvironmentElement
              extended by org.objectweb.jonas_web.deployment.xml.WebApp
All Implemented Interfaces:
java.io.Serializable, DescriptionGroupXml, Element, JndiEnvRefsGroupXml, TopLevelElement

public class WebApp
extends AbsEnvironmentElement
implements TopLevelElement, JndiEnvRefsGroupXml

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

Author:
Florent Benoit
See Also:
Serialized Form

Constructor Summary
WebApp()
          Constructor : build a new WebApp object
 
Method Summary
 void addSecurityConstraint(SecurityConstraint securityConstraint)
          Add a new security constraint element to this object
 void addSecurityRole(SecurityRole securityRole)
          Add a new security role element to this object
 void addServlet(Servlet servlet)
          Add a new servlet element to this object
 void addServletMapping(ServletMapping servletMapping)
          Add a new servlet-mapping element to this object
 int getJspConfigNumber()
           
 int getLoginConfigNumber()
           
 JLinkedList getSecurityConstraintList()
          Gets the security-constraint
 JLinkedList getSecurityRoleList()
          Gets the security-role
 JLinkedList getServletList()
           
 JLinkedList getServletMappingList()
           
 int getSessionConfigNumber()
           
 void newJspConfig()
          Count a new jsp config
 void newLoginConfig()
          Count a new login-config
 void newSessionConfig()
          Count a new jsp config
 void setSecurityConstraintList(JLinkedList securityConstraintList)
          Set the security-constraint
 void setSecurityRoleList(JLinkedList securityRoleList)
          Set the security-role
 java.lang.String toXML(int indent)
          Represents this element by it's XML description.
 
Methods inherited from class org.objectweb.jonas_lib.deployment.xml.AbsEnvironmentElement
addEjbLocalRef, addEjbRef, addEnvEntry, addMessageDestinationRef, addResourceEnvRef, addResourceRef, addServiceRef, getEjbLocalRefList, getEjbRefList, getEnvEntryList, getMessageDestinationRefList, getResourceEnvRefList, getResourceRefList, getServiceRefList
 
Methods inherited from class org.objectweb.jonas_lib.deployment.xml.AbsDescriptionElement
getDescription, getDisplayName, getIcon, setDescription, setDisplayName, setIcon, setLargeIcon, setLargeIcon, setSmallIcon, setSmallIcon
 
Methods inherited from class org.objectweb.jonas_lib.deployment.xml.AbsElement
indent, toString, toXML, xmlAttribute, xmlElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.objectweb.jonas_lib.deployment.xml.JndiEnvRefsGroupXml
getEjbLocalRefList, getEjbRefList, getEnvEntryList, getMessageDestinationRefList, getResourceEnvRefList, getResourceRefList, getServiceRefList
 
Methods inherited from interface org.objectweb.jonas_lib.deployment.xml.DescriptionGroupXml
getDescription, getDisplayName, getIcon
 

Constructor Detail

WebApp

public WebApp()
Constructor : build a new WebApp object

Method Detail

addServlet

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

Parameters:
servlet - the servlet object

addServletMapping

public void addServletMapping(ServletMapping servletMapping)
Add a new servlet-mapping element to this object

Parameters:
servletMapping - the servlet-mapping object

setSecurityRoleList

public void setSecurityRoleList(JLinkedList securityRoleList)
Set the security-role

Parameters:
securityRoleList - securityRole

addSecurityRole

public void addSecurityRole(SecurityRole securityRole)
Add a new security role element to this object

Parameters:
securityRole - security role object

setSecurityConstraintList

public void setSecurityConstraintList(JLinkedList securityConstraintList)
Set the security-constraint

Parameters:
securityConstraintList - securityConstraint

addSecurityConstraint

public void addSecurityConstraint(SecurityConstraint securityConstraint)
Add a new security constraint element to this object

Parameters:
securityConstraint - security constraint object

getSecurityConstraintList

public JLinkedList getSecurityConstraintList()
Gets the security-constraint

Returns:
the security-constraint

getSecurityRoleList

public JLinkedList getSecurityRoleList()
Gets the security-role

Returns:
the security-role

getServletList

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

getServletMappingList

public JLinkedList getServletMappingList()
Returns:
the list of all servlet-mapping elements

newJspConfig

public void newJspConfig()
Count a new jsp config


newLoginConfig

public void newLoginConfig()
Count a new login-config


newSessionConfig

public void newSessionConfig()
Count a new jsp config


toXML

public java.lang.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.

getJspConfigNumber

public int getJspConfigNumber()
Returns:
the jspConfigNumber.

getLoginConfigNumber

public int getLoginConfigNumber()
Returns:
the loginConfigNumber.

getSessionConfigNumber

public int getSessionConfigNumber()
Returns:
the sessionConfigNumber.