org.apache.servicemix.script
Class ScriptExchangeHelper

java.lang.Object
  extended by org.apache.servicemix.script.ScriptExchangeHelper
All Implemented Interfaces:
ScriptHelper

public class ScriptExchangeHelper
extends java.lang.Object
implements ScriptHelper

This helper object can be injected into your scripts to allow to quick access to basic JBI operations


Field Summary
protected  ScriptExchangeProcessorEndpoint endpoint
           
 
Constructor Summary
ScriptExchangeHelper()
           
 
Method Summary
 void doneExchange(javax.jbi.messaging.MessageExchange exchange)
           
 void failExchange(javax.jbi.messaging.MessageExchange exchange, java.lang.Exception exception)
           
 javax.jbi.messaging.DeliveryChannel getChannel()
           
 javax.jbi.component.ComponentContext getContext()
           
 javax.jbi.messaging.MessageExchangeFactory getExchangeFactory()
           
 void sendExchange(javax.jbi.messaging.MessageExchange exchange)
           
 void sendSyncExchange(javax.jbi.messaging.MessageExchange exchange)
           
 void setScriptExchangeProcessorEndpoint(ScriptExchangeProcessorEndpoint ep)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

endpoint

protected ScriptExchangeProcessorEndpoint endpoint
Constructor Detail

ScriptExchangeHelper

public ScriptExchangeHelper()
Method Detail

setScriptExchangeProcessorEndpoint

public void setScriptExchangeProcessorEndpoint(ScriptExchangeProcessorEndpoint ep)
Specified by:
setScriptExchangeProcessorEndpoint in interface ScriptHelper

doneExchange

public void doneExchange(javax.jbi.messaging.MessageExchange exchange)
                  throws javax.jbi.messaging.MessagingException
Throws:
javax.jbi.messaging.MessagingException

failExchange

public void failExchange(javax.jbi.messaging.MessageExchange exchange,
                         java.lang.Exception exception)
                  throws javax.jbi.messaging.MessagingException
Throws:
javax.jbi.messaging.MessagingException

sendExchange

public void sendExchange(javax.jbi.messaging.MessageExchange exchange)
                  throws javax.jbi.messaging.MessagingException
Throws:
javax.jbi.messaging.MessagingException

sendSyncExchange

public void sendSyncExchange(javax.jbi.messaging.MessageExchange exchange)
                      throws javax.jbi.messaging.MessagingException
Throws:
javax.jbi.messaging.MessagingException

getChannel

public javax.jbi.messaging.DeliveryChannel getChannel()

getContext

public javax.jbi.component.ComponentContext getContext()

getExchangeFactory

public javax.jbi.messaging.MessageExchangeFactory getExchangeFactory()


Copyright © 2005-2011 FuseSource. All Rights Reserved.