it.imolinfo.jbi4corba.jbi.processor
Class ProviderExchangeProcessor

java.lang.Object
  extended by it.imolinfo.jbi4corba.jbi.processor.ProviderExchangeProcessor
All Implemented Interfaces:
ExchangeProcessor

public class ProviderExchangeProcessor
extends Object
implements ExchangeProcessor

Provider Exchange processor


Field Summary
protected  ProviderEndpoint endpoint
          The endpoint
 
Constructor Summary
ProviderExchangeProcessor(ProviderEndpoint endpoint)
          The Exchange processor
 
Method Summary
protected  Document getXMLDom(Source source)
           
protected  javax.xml.stream.XMLStreamReader getXMLStreamReader(Source source)
           
protected  boolean isInAndOut(javax.jbi.messaging.MessageExchange exchange)
           
protected  boolean isOneWay(javax.jbi.messaging.MessageExchange exchange)
          True if the exchange is InOnly.
 void process(javax.jbi.messaging.MessageExchange jbiExchange)
          Process the message exchange.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

endpoint

protected ProviderEndpoint endpoint
The endpoint

Constructor Detail

ProviderExchangeProcessor

public ProviderExchangeProcessor(ProviderEndpoint endpoint)
                          throws Jbi4CorbaException
The Exchange processor

Parameters:
endpoint - The endpoint
Throws:
Jbi4CorbaException
Method Detail

process

public void process(javax.jbi.messaging.MessageExchange jbiExchange)
Description copied from interface: ExchangeProcessor
Process the message exchange.

Specified by:
process in interface ExchangeProcessor
Parameters:
exchange - The message exchange
Throws:
Exception - The exception

getXMLStreamReader

protected javax.xml.stream.XMLStreamReader getXMLStreamReader(Source source)
                                                       throws TransformerException,
                                                              javax.xml.stream.XMLStreamException
Parameters:
source - The source
Returns:
The return
Throws:
TransformerException - The transformer exception
javax.xml.stream.XMLStreamException - The XML stream exception

getXMLDom

protected Document getXMLDom(Source source)
                      throws TransformerException,
                             ParserConfigurationException,
                             IOException,
                             SAXException
Parameters:
source - The source
Returns:
The return
Throws:
TransformerException - The transformer exception
ParserConfigurationException - The parser configuration exception
IOException - The IO exception
SAXException - The SAX exception

isInAndOut

protected boolean isInAndOut(javax.jbi.messaging.MessageExchange exchange)
Parameters:
exchange - The exchange
Returns:
The return

isOneWay

protected boolean isOneWay(javax.jbi.messaging.MessageExchange exchange)
True if the exchange is InOnly.

Parameters:
exchange - The exchange
Returns:
True if the exchange is InOnly


Copyright © 2005-2010 Imola Informatica. All Rights Reserved.