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

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

public class Servlet
extends AbsElement

This class defines the implementation of the element servlet Don't take into account nested element : icon, display-name, description, init-param, load-on-startup, run-as and security-role-ref Which are optional (web container implentation will parse it)

Author:
Florent Benoit
See Also:
Serialized Form

Constructor Summary
Servlet()
          Constructor
 
Method Summary
 void addSecurityRoleRef(SecurityRoleRef securityRoleRef)
          Add a new security-role-ref element to this object
 String getJspFile()
           
 RunAs getRunAs()
          Gets the run-as
 JLinkedList getSecurityRoleRefList()
          Gets the security-role-ref
 String getServletClass()
           
 String getServletName()
           
 void setJspFile(String jspFile)
          Sets the jsp-file of the servlet
 void setRunAs(RunAs runAs)
          Set the run-as
 void setSecurityRoleRefList(JLinkedList securityRoleRefList)
          Set the security-role-ref
 void setServletClass(String servletClass)
          Sets the class of the servlet
 void setServletName(String servletName)
          Sets the name of the servlet
 String toXML(int indent)
          Represents this element by it's XML description.
 
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
 

Constructor Detail

Servlet

public Servlet()
Constructor

Method Detail

setServletName

public void setServletName(String servletName)
Sets the name of the servlet

Parameters:
servletName - name of the servlet

setServletClass

public void setServletClass(String servletClass)
Sets the class of the servlet

Parameters:
servletClass - class of the servlet

setJspFile

public void setJspFile(String jspFile)
Sets the jsp-file of the servlet

Parameters:
jspFile - jsp-file of the servlet

addSecurityRoleRef

public void addSecurityRoleRef(SecurityRoleRef securityRoleRef)
Add a new security-role-ref element to this object

Parameters:
securityRoleRef - security-role-ref

setSecurityRoleRefList

public void setSecurityRoleRefList(JLinkedList securityRoleRefList)
Set the security-role-ref

Parameters:
securityRoleRefList - securityRoleRef

setRunAs

public void setRunAs(RunAs runAs)
Set the run-as

Parameters:
runAs - runAs

getServletName

public String getServletName()
Returns:
the name of the servlet

getServletClass

public String getServletClass()
Returns:
the class of the servlet

getJspFile

public String getJspFile()
Returns:
the jsp-file of the servlet

getSecurityRoleRefList

public JLinkedList getSecurityRoleRefList()
Gets the security-role-ref

Returns:
the security-role-ref

getRunAs

public RunAs getRunAs()
Gets the run-as

Returns:
the run-as

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.


Copyright © 2010 OW2 Consortium. All Rights Reserved.