org.ow2.jonas.deployment.common.xml
Class Handler

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

public class Handler
extends AbsElement

This class defines the implementation of the element handler.

Author:
Florent Benoit
See Also:
Serialized Form

Constructor Summary
Handler()
          Constructor : build a new Handler object
 
Method Summary
 void addInitParam(InitParam initParam)
          Add a new init-param element to this object
 void addPortName(String portName)
          Add a new port-name element to this object
 void addSoapHeader(Qname soapHeader)
          Add a new soap-header element to this object
 void addSoapRole(String soapRole)
          Add a new soap-role element to this object
 String getHandlerClass()
           
 String getHandlerName()
           
 JLinkedList getInitParamList()
           
 JLinkedList getPortNameList()
           
 JLinkedList getSoapHeaderList()
           
 JLinkedList getSoapRoleList()
           
 void setHandlerClass(String handlerClass)
          Sets the class
 void setHandlerName(String handlerName)
          Sets the 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

Handler

public Handler()
Constructor : build a new Handler object

Method Detail

setHandlerName

public void setHandlerName(String handlerName)
Sets the name

Parameters:
handlerName - the name to use

addPortName

public void addPortName(String portName)
Add a new port-name element to this object

Parameters:
portName - the port-name object

addSoapRole

public void addSoapRole(String soapRole)
Add a new soap-role element to this object

Parameters:
soapRole - the soap-role object

addSoapHeader

public void addSoapHeader(Qname soapHeader)
Add a new soap-header element to this object

Parameters:
soapHeader - the soap-header object

addInitParam

public void addInitParam(InitParam initParam)
Add a new init-param element to this object

Parameters:
initParam - the init-param object

setHandlerClass

public void setHandlerClass(String handlerClass)
Sets the class

Parameters:
handlerClass - the class to use

getHandlerName

public String getHandlerName()
Returns:
the name of the handler

getHandlerClass

public String getHandlerClass()
Returns:
the class of the handler

getInitParamList

public JLinkedList getInitParamList()
Returns:
the list of all init-param elements

getSoapHeaderList

public JLinkedList getSoapHeaderList()
Returns:
the list of all soap-header elements

getSoapRoleList

public JLinkedList getSoapRoleList()
Returns:
the list of all soap-role elements

getPortNameList

public JLinkedList getPortNameList()
Returns:
the list of all port-name 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.


Copyright © 2010 OW2 Consortium. All Rights Reserved.