Package org.apache.axis2.description
Class HandlerDescription
- java.lang.Object
-
- org.apache.axis2.description.HandlerDescription
-
- All Implemented Interfaces:
ParameterInclude
public class HandlerDescription extends Object implements ParameterInclude
Represents the deployment information about the handler
-
-
Constructor Summary
Constructors Constructor Description HandlerDescription()
Constructor HandlerDescription.HandlerDescription(String name)
Constructor HandlerDescription.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter(Parameter param)
Add a Parametervoid
deserializeParameters(OMElement parameterElement)
String
getClassName()
Method getClassName.Handler
getHandler()
String
getName()
Parameter
getParameter(String name)
Get a named ParameterArrayList<Parameter>
getParameters()
Gets all the parameters in a given description.ParameterInclude
getParent()
PhaseRule
getRules()
Method getRules.boolean
isParameterLocked(String parameterName)
Checks whether the parameter is locked at any level.void
removeParameter(Parameter param)
void
setClassName(String className)
Method setClassName.void
setHandler(Handler handler)
Explicitly set the Handler objectvoid
setName(String name)
Set the namevoid
setParent(ParameterInclude parent)
void
setRules(PhaseRule rules)
Set the deployment rules for this HandlerDescription
-
-
-
Constructor Detail
-
HandlerDescription
public HandlerDescription()
Constructor HandlerDescription.
-
HandlerDescription
public HandlerDescription(String name)
Constructor HandlerDescription.- Parameters:
name
- name of handler
-
-
Method Detail
-
addParameter
public void addParameter(Parameter param) throws AxisFault
Add a Parameter- Specified by:
addParameter
in interfaceParameterInclude
- Parameters:
param
- the Parameter to associate with this HandlerDescription- Throws:
AxisFault
-
removeParameter
public void removeParameter(Parameter param) throws AxisFault
- Specified by:
removeParameter
in interfaceParameterInclude
- Throws:
AxisFault
-
deserializeParameters
public void deserializeParameters(OMElement parameterElement) throws AxisFault
- Specified by:
deserializeParameters
in interfaceParameterInclude
- Throws:
AxisFault
-
getClassName
public String getClassName()
Method getClassName.- Returns:
- Returns String.
-
getHandler
public Handler getHandler()
- Returns:
- Returns Handler.
-
getName
public String getName()
- Returns:
- Returns QName.
-
getParameter
public Parameter getParameter(String name)
Get a named Parameter- Specified by:
getParameter
in interfaceParameterInclude
- Parameters:
name
- name of Parameter to search- Returns:
- a Parameter, which may come from us or from some parent up the tree, or null.
-
getParameters
public ArrayList<Parameter> getParameters()
Description copied from interface:ParameterInclude
Gets all the parameters in a given description.- Specified by:
getParameters
in interfaceParameterInclude
- Returns:
- Returns ArrayList.
-
getParent
public ParameterInclude getParent()
-
getRules
public PhaseRule getRules()
Method getRules.- Returns:
- Returns PhaseRule.
-
isParameterLocked
public boolean isParameterLocked(String parameterName)
Description copied from interface:ParameterInclude
Checks whether the parameter is locked at any level.- Specified by:
isParameterLocked
in interfaceParameterInclude
-
setClassName
public void setClassName(String className)
Method setClassName.- Parameters:
className
- the class name of the Handler class
-
setHandler
public void setHandler(Handler handler)
Explicitly set the Handler object- Parameters:
handler
- a Handler instance, which will be deployed wherever this HandlerDescription is
-
setName
public void setName(String name)
Set the name- Parameters:
name
- the desired name
-
setParent
public void setParent(ParameterInclude parent)
-
setRules
public void setRules(PhaseRule rules)
Set the deployment rules for this HandlerDescription- Parameters:
rules
- a PhaseRule object
-
-