Author: thorsten
Date: Fri Sep 26 05:12:54 2008
New Revision: 699293
URL: http://svn.apache.org/viewvc?rev=699293&view=rev
Log:
Fixing the processing of properties where we first just processed the first and
not all properties
Modified:
forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/XMLStructurerAxiom.java
Modified:
forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/XMLStructurerAxiom.java
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/XMLStructurerAxiom.java?rev=699293&r1=699292&r2=699293&view=diff
==============================================================================
---
forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/XMLStructurerAxiom.java
(original)
+++
forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/XMLStructurerAxiom.java
Fri Sep 26 05:12:54 2008
@@ -246,10 +246,12 @@
}
Contract contract = contractRep.resolve(name);
HashMap<String, ?> param = new HashMap();
- OMElement properties = component
- .getFirstChildWithName(qIt(Captions.PROPERTY_ELEMENT));
- if (properties != null) {
- processProperty(properties, param);
+ Iterator <OMNode> properties =
component.getChildrenWithName(qIt(Captions.NS,Captions.PROPERTY_ELEMENT));
+ while (properties.hasNext()) {
+ OMNode node = (OMNode) properties.next();
+ if (isElement(node)){
+ processProperty((OMElement) node, param);
+ }
}
InputStream resultStream = contract.execute(dataStream, param);
StreamHelper.closeStream(dataStream);