Package org.apache.axis2.description
Class AxisDescription
java.lang.Object
org.apache.axis2.description.AxisDescription
- All Implemented Interfaces:
DescriptionConstants,ParameterInclude
- Direct Known Subclasses:
AxisBinding,AxisBindingMessage,AxisBindingOperation,AxisConfiguration,AxisEndpoint,AxisMessage,AxisOperation,AxisService,AxisServiceGroup
public abstract class AxisDescription
extends Object
implements ParameterInclude, DescriptionConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String,AxisModule> Map of modules engaged on this object.protected List<ParameterObserver>List of ParameterObservers who want to be notified of changesprotected AxisDescriptionFields inherited from interface org.apache.axis2.description.DescriptionConstants
CLASSLOADER_KEY, CONTEXTPATH_KEY, EXECUTION_CHAIN_KEY, EXECUTION_FAULT_CHAIN_KEY, EXECUTION_OUT_CHAIN_KEY, IN_FAULTFLOW_KEY, INFLOW_KEY, MESSAGE_RECEIVER_KEY, MODULEREF_KEY, OPERATION_KEY, OUT_FAULTFLOW_KEY, OUTFLOW_KEY, PARAMETER_KEY, PHASES_KEY, SERVICE_CLASS_NAME, STYLE_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(Object key, AxisDescription child) voidaddChild(AxisDescription child) voidaddParameter(String name, Object value) voidaddParameter(Parameter param) Method addParameter.voidaddParameterObserver(ParameterObserver observer) voidApplies the policies on the Description Hierarchy recursively.voidapplyPolicy(org.apache.neethi.Policy policy) This method sets the policy as the default of this AxisDescription instance.voiddeserializeParameters(org.apache.axiom.om.OMElement parameterElement) voiddisengageModule(AxisModule module) voidengageModule(AxisModule axisModule) Engage a Module at this levelvoidengageModule(AxisModule axisModule, AxisDescription source) Engage a Module at this level, keeping track of which level the engage was originally called from.Iterator<? extends AxisDescription>org.apache.axiom.om.OMNodeabstract ObjectgetKey()getParameter(String name) If the parameter is found in the current description then the Parameter will be writable else it will be read onlyGets all the parameters in a given description.getParameterValue(String name) Deprecated.booleanCheck if a given module is engaged at this level.booleanisEngaged(AxisModule axisModule) booleanisParameterLocked(String parameterName) Checks whether the parameter is locked at any level.booleanisParameterTrue(String name) protected voidonDisengage(AxisModule module) protected voidonEngage(AxisModule module, AxisDescription engager) voidremoveChild(Object key) voidremoveParameter(Parameter param) voidremoveParameterObserver(ParameterObserver observer) voidsetDocumentation(String documentation) voidsetDocumentation(org.apache.axiom.om.OMNode documentation) voidsetParent(AxisDescription parent) voidsetPolicyInclude(PolicyInclude policyInclude) Deprecated.As of release 1.4, if you want to access the policy cache of a particular AxisDescription object usegetPolicySubject()instead.
-
Field Details
-
parent
-
engagedModules
Map of modules engaged on this object. The key is the archive name as defined byAxisModule.getArchiveName(). -
parameterObservers
List of ParameterObservers who want to be notified of changes
-
-
Constructor Details
-
AxisDescription
public AxisDescription()
-
-
Method Details
-
addParameterObserver
-
removeParameterObserver
-
addParameter
Description copied from interface:ParameterIncludeMethod addParameter.- Specified by:
addParameterin interfaceParameterInclude- Throws:
AxisFault
-
addParameter
- Throws:
AxisFault
-
removeParameter
- Specified by:
removeParameterin interfaceParameterInclude- Throws:
AxisFault
-
deserializeParameters
- Specified by:
deserializeParametersin interfaceParameterInclude- Throws:
AxisFault
-
getParameter
If the parameter is found in the current description then the Parameter will be writable else it will be read only- Specified by:
getParameterin interfaceParameterInclude- Parameters:
name- name of Parameter to retrieve- Returns:
- the Parameter, if found anywhere in the stack, or null if not
-
getParameterValue
-
isParameterTrue
-
getParameters
Description copied from interface:ParameterIncludeGets all the parameters in a given description.- Specified by:
getParametersin interfaceParameterInclude- Returns:
- Returns ArrayList.
-
isParameterLocked
Description copied from interface:ParameterIncludeChecks whether the parameter is locked at any level.- Specified by:
isParameterLockedin interfaceParameterInclude
-
getDocumentation
-
getDocumentationNode
public org.apache.axiom.om.OMNode getDocumentationNode() -
setDocumentation
public void setDocumentation(org.apache.axiom.om.OMNode documentation) -
setDocumentation
-
setParent
-
getParent
-
setPolicyInclude
Deprecated.As of release 1.4, if you want to access the policy cache of a particular AxisDescription object usegetPolicySubject()instead.- Parameters:
policyInclude- PolicyInclude value- See Also:
-
getPolicyInclude
Deprecated.As of release 1.4, replaced bygetPolicySubject()- Returns:
- the active PolicyInclue
- See Also:
-
addChild
-
addChild
-
getChildren
-
getChild
-
removeChild
-
applyPolicy
This method sets the policy as the default of this AxisDescription instance. Further more this method does the followings. (1) Engage whatever modules necessary to execute new the effective policy of this AxisDescription instance. (2) Disengage whatever modules that are not necessary to execute the new effective policy of this AxisDescription instance. (3) Check whether each module can execute the new effective policy of this AxisDescription instance. (4) If not throw an AxisFault to notify the user. (5) Else notify each module about the new effective policy.- Parameters:
policy- the new policy of this AxisDescription instance. The effective policy is the merge of this argument with effective policy of parent of this AxisDescription.- Throws:
AxisFault- if any module is unable to execute the effective policy of this AxisDescription instance successfully or no module to execute some portion (one or more PrimtiveAssertions ) of that effective policy.
-
applyPolicy
Applies the policies on the Description Hierarchy recursively.- Throws:
AxisFault- an error occurred applying the policy
-
getAxisConfiguration
-
getKey
-
engageModule
Engage a Module at this level- Parameters:
axisModule- the Module to engage- Throws:
AxisFault- if there's a problem engaging
-
engageModule
Engage a Module at this level, keeping track of which level the engage was originally called from. This is meant for internal use only.- Parameters:
axisModule- module to engagesource- the AxisDescription which originally called engageModule()- Throws:
AxisFault- if there's a problem engaging
-
onEngage
- Throws:
AxisFault
-
getEngagedModules
-
isEngaged
Check if a given module is engaged at this level.- Parameters:
moduleName- module to investigate.- Returns:
- true if engaged, false if not. TODO: Handle versions? isEngaged("addressing") should be true even for versioned modulename...
-
isEngaged
-
disengageModule
- Throws:
AxisFault
-
onDisengage
- Throws:
AxisFault
-
getPolicySubject
-
getPolicySubject()