|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.support.ExpressionSupport org.apache.camel.support.ExpressionAdapter org.apache.camel.component.stax.StAXJAXBIteratorExpression<T>
public class StAXJAXBIteratorExpression<T>
Expression
to walk a Message
body
using an Iterator
, which uses StAX to walk in streaming mode.
The elements returned is a POJO which is bound using JAXB annotations.
XMLEventReader
type which is used as stream
to access the message body. And there must be a JAXB annotated class to use as binding.
Constructor Summary | |
---|---|
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 | |
---|---|
Object |
evaluate(org.apache.camel.Exchange exchange)
|
Methods inherited from class org.apache.camel.support.ExpressionAdapter |
---|
assertionFailureMessage, evaluate |
Methods inherited from class org.apache.camel.support.ExpressionSupport |
---|
assertMatches, matches |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StAXJAXBIteratorExpression(Class<T> handled)
handled
- the class which has JAXB annotations to bind POJO.public StAXJAXBIteratorExpression(Class<T> handled, boolean isNamespaceAware)
handled
- the class which has JAXB annotations to bind POJO.isNamespaceAware
- sets the namespace awareness of the xml readerpublic StAXJAXBIteratorExpression(String handledName)
handledName
- the FQN name of the class which has JAXB annotations to bind POJO.public StAXJAXBIteratorExpression(String handledName, boolean isNamespaceAware)
handledName
- the FQN name of the class which has JAXB annotations to bind POJO.isNamespaceAware
- sets the namespace awareness of the xml readerMethod Detail |
---|
public Object evaluate(org.apache.camel.Exchange exchange)
evaluate
in class org.apache.camel.support.ExpressionSupport
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |