org.apache.camel.component.stax
Class StAXProcessor

java.lang.Object
  extended by org.apache.camel.component.stax.StAXProcessor
All Implemented Interfaces:
org.apache.camel.Processor

public class StAXProcessor
extends Object
implements org.apache.camel.Processor

It uses SAX content handler to handle events.

The Exchange is expected to contain a message body, that is convertable to both a InputSource and a XMLStreamReader to support StAX streaming.


Constructor Summary
StAXProcessor(Class<ContentHandler> contentHandlerClass)
           
StAXProcessor(ContentHandler contentHandler)
           
 
Method Summary
 void process(org.apache.camel.Exchange exchange)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StAXProcessor

public StAXProcessor(Class<ContentHandler> contentHandlerClass)

StAXProcessor

public StAXProcessor(ContentHandler contentHandler)
Method Detail

process

public void process(org.apache.camel.Exchange exchange)
             throws Exception
Specified by:
process in interface org.apache.camel.Processor
Throws:
Exception


Apache Camel