You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by gd...@apache.org on 2009/06/14 17:41:58 UTC
svn commit: r784574 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/ModuleBuilder.java
Author: gdaniels
Date: Sun Jun 14 15:41:57 2009
New Revision: 784574
URL: http://svn.apache.org/viewvc?rev=784574&view=rev
Log:
Fix for https://issues.apache.org/jira/browse/AXIS2-3084
Modified:
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/ModuleBuilder.java
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/ModuleBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/ModuleBuilder.java?rev=784574&r1=784573&r2=784574&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/ModuleBuilder.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/ModuleBuilder.java Sun Jun 14 15:41:57 2009
@@ -173,27 +173,21 @@
processPolicyRefElements(policyRefElements, module.getPolicySubject());
}
- // process INFLOW
- OMElement inFlow = moduleElement.getFirstChildWithName(new QName(TAG_FLOW_IN));
- if (inFlow != null) {
- module.setInFlow(processFlow(inFlow, module));
- }
-
- OMElement outFlow = moduleElement.getFirstChildWithName(new QName(TAG_FLOW_OUT));
- if (outFlow != null) {
- module.setOutFlow(processFlow(outFlow, module));
- }
-
- OMElement inFaultFlow =
- moduleElement.getFirstChildWithName(new QName(TAG_FLOW_IN_FAULT));
- if (inFaultFlow != null) {
- module.setFaultInFlow(processFlow(inFaultFlow, module));
- }
-
- OMElement outFaultFlow =
- moduleElement.getFirstChildWithName(new QName(TAG_FLOW_OUT_FAULT));
- if (outFaultFlow != null) {
- module.setFaultOutFlow(processFlow(outFaultFlow, module));
+ // process flows (case-insensitive)
+
+ Iterator flows = moduleElement.getChildElements();
+ while (flows.hasNext()) {
+ OMElement flowElement = (OMElement)flows.next();
+ final String flowName = flowElement.getLocalName();
+ if (flowName.compareToIgnoreCase(TAG_FLOW_IN) == 0) {
+ module.setInFlow(processFlow(flowElement, module));
+ } else if (flowName.compareToIgnoreCase(TAG_FLOW_OUT) == 0) {
+ module.setOutFlow(processFlow(flowElement, module));
+ } else if (flowName.compareToIgnoreCase(TAG_FLOW_IN_FAULT) == 0) {
+ module.setFaultInFlow(processFlow(flowElement, module));
+ } else if (flowName.compareToIgnoreCase(TAG_FLOW_OUT_FAULT) == 0) {
+ module.setFaultOutFlow(processFlow(flowElement, module));
+ }
}
OMElement supportedPolicyNamespaces =