org.apache.servicemix.camel.nmr
Class ServiceMixBinding

java.lang.Object
  extended by org.apache.servicemix.camel.nmr.ServiceMixBinding

public class ServiceMixBinding
extends java.lang.Object

The binding object will help us to deal with copying between the NMR exchange and camel exchange


Field Summary
static java.lang.String NMR_EXCHANGE
           
static java.lang.String NMR_MESSAGE
           
static java.lang.String NMR_OPERATION
           
 
Constructor Summary
ServiceMixBinding()
           
 
Method Summary
protected  void addCamelAttachments(org.apache.servicemix.nmr.api.Message nmrMessage, org.apache.camel.Message camelMessage)
           
protected  void addNmrHeaders(org.apache.servicemix.nmr.api.Message nmrMessage, org.apache.camel.Message camelMessage)
           
protected  void addSecuritySubject(org.apache.servicemix.nmr.api.Message nmrMessage, org.apache.camel.Message camelMessage)
           
 void copyCamelMessageToNmrMessage(org.apache.servicemix.nmr.api.Message nmrMessage, org.apache.camel.Message camelMessage)
           
 void copyNmrMessageToCamelMessage(org.apache.servicemix.nmr.api.Message nmrMessage, org.apache.camel.Message camelMessage)
           
 org.apache.servicemix.nmr.api.Exchange detachExchange(org.apache.camel.Exchange camelExchange)
           
protected  org.apache.servicemix.nmr.api.Message getNmrMessage(org.apache.camel.Message message)
           
 org.apache.camel.Exchange populateCamelExchangeFromNmrExchange(org.apache.camel.CamelContext context, org.apache.servicemix.nmr.api.Exchange nmrExchange)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NMR_MESSAGE

public static final java.lang.String NMR_MESSAGE
See Also:
Constant Field Values

NMR_EXCHANGE

public static final java.lang.String NMR_EXCHANGE
See Also:
Constant Field Values

NMR_OPERATION

public static final java.lang.String NMR_OPERATION
See Also:
Constant Field Values
Constructor Detail

ServiceMixBinding

public ServiceMixBinding()
Method Detail

copyCamelMessageToNmrMessage

public void copyCamelMessageToNmrMessage(org.apache.servicemix.nmr.api.Message nmrMessage,
                                         org.apache.camel.Message camelMessage)
                                  throws javax.jbi.messaging.MessagingException
Throws:
javax.jbi.messaging.MessagingException

copyNmrMessageToCamelMessage

public void copyNmrMessageToCamelMessage(org.apache.servicemix.nmr.api.Message nmrMessage,
                                         org.apache.camel.Message camelMessage)

populateCamelExchangeFromNmrExchange

public org.apache.camel.Exchange populateCamelExchangeFromNmrExchange(org.apache.camel.CamelContext context,
                                                                      org.apache.servicemix.nmr.api.Exchange nmrExchange)

detachExchange

public org.apache.servicemix.nmr.api.Exchange detachExchange(org.apache.camel.Exchange camelExchange)
                                                      throws javax.jbi.messaging.MessagingException
Throws:
javax.jbi.messaging.MessagingException

addNmrHeaders

protected void addNmrHeaders(org.apache.servicemix.nmr.api.Message nmrMessage,
                             org.apache.camel.Message camelMessage)

addCamelAttachments

protected void addCamelAttachments(org.apache.servicemix.nmr.api.Message nmrMessage,
                                   org.apache.camel.Message camelMessage)

addSecuritySubject

protected void addSecuritySubject(org.apache.servicemix.nmr.api.Message nmrMessage,
                                  org.apache.camel.Message camelMessage)

getNmrMessage

protected org.apache.servicemix.nmr.api.Message getNmrMessage(org.apache.camel.Message message)


Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.