Package org.apache.camel.component.stax
Class StAXJAXBIteratorExpression<T>
- java.lang.Object
-
- org.apache.camel.support.ExpressionSupport
-
- org.apache.camel.support.ExpressionAdapter
-
- org.apache.camel.component.stax.StAXJAXBIteratorExpression<T>
-
- All Implemented Interfaces:
org.apache.camel.Expression,org.apache.camel.Predicate
public class StAXJAXBIteratorExpression<T> extends org.apache.camel.support.ExpressionAdapterExpressionto walk aMessagebody using anIterator, which uses StAX to walk in streaming mode. The elements returned is a POJO which is bound using JAXB annotations. The message body must be able to convert toXMLEventReadertype which is used as stream to access the message body. And there must be a JAXB annotated class to use as binding.
-
-
Constructor Summary
Constructors Constructor Description StAXJAXBIteratorExpression(Class<T> handled)Creates this expression.StAXJAXBIteratorExpression(Class<T> handled, boolean isNamespaceAware)Creates this expression.StAXJAXBIteratorExpression(String handledName)Creates this expression.StAXJAXBIteratorExpression(String handledName, boolean isNamespaceAware)Creates this expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectevaluate(org.apache.camel.Exchange exchange)-
Methods inherited from class org.apache.camel.support.ExpressionAdapter
assertionFailureMessage, evaluate, init
-
-
-
-
Constructor Detail
-
StAXJAXBIteratorExpression
public StAXJAXBIteratorExpression(Class<T> handled)
Creates this expression.- Parameters:
handled- the class which has JAXB annotations to bind POJO.
-
StAXJAXBIteratorExpression
public StAXJAXBIteratorExpression(Class<T> handled, boolean isNamespaceAware)
Creates this expression.- Parameters:
handled- the class which has JAXB annotations to bind POJO.isNamespaceAware- sets the namespace awareness of the xml reader
-
StAXJAXBIteratorExpression
public StAXJAXBIteratorExpression(String handledName)
Creates this expression.- Parameters:
handledName- the FQN name of the class which has JAXB annotations to bind POJO.
-
StAXJAXBIteratorExpression
public StAXJAXBIteratorExpression(String handledName, boolean isNamespaceAware)
Creates this expression.- Parameters:
handledName- the FQN name of the class which has JAXB annotations to bind POJO.isNamespaceAware- sets the namespace awareness of the xml reader
-
-
Method Detail
-
evaluate
public Object evaluate(org.apache.camel.Exchange exchange)
- Overrides:
evaluatein classorg.apache.camel.support.ExpressionSupport
-
-