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

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

public class JonasServlet
extends AbsElement

This class defines the implementation of the servlet element.

Author:
Francois Fornaciari
See Also:
Serialized Form

Constructor Summary
JonasServlet()
           
 
Method Summary
 String getPrincipalName()
           
 String getServletName()
           
 void setPrincipalName(String principalName)
          Sets the principal name
 void setServletName(String servletName)
          Sets the servlet name
 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

JonasServlet

public JonasServlet()
Method Detail

setServletName

public void setServletName(String servletName)
Sets the servlet name

Parameters:
servletName - the servlet-name to use

setPrincipalName

public void setPrincipalName(String principalName)
Sets the principal name

Parameters:
principalName - the principal name to use

getServletName

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

getPrincipalName

public String getPrincipalName()
Returns:
the princiapl name of the servlet

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 prefixing XML representation.
Returns:
the XML description of this object.


Copyright © 2010 OW2 Consortium. All Rights Reserved.