org.ow2.petals.se.eip
Interface ExchangeContext

All Known Implementing Classes:
JBIListener

public interface ExchangeContext

The exchange context

Author:
alouis, Frederic Gardes

Method Summary
 org.ow2.petals.component.framework.api.message.Exchange createConsumeExchange(org.ow2.petals.component.framework.jbidescriptor.generated.Consumes consumes)
          Create an exchange from a Consumes
 org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions getExtensions()
          Get the extensions
 java.util.logging.Logger getLogger()
          Get the logger
 java.util.List<org.ow2.petals.component.framework.jbidescriptor.generated.Consumes> getSUConsumes(javax.jbi.servicedesc.ServiceEndpoint endpoint)
          get the Consumes for an endpoint
 void send(org.ow2.petals.component.framework.api.message.Exchange exchange)
          Send asynchronously an exchange.
 void sendAsync(org.ow2.petals.component.framework.api.message.Exchange exchange, org.ow2.petals.component.framework.process.async.AsyncContext asyncContext)
          Send asynchronously an exchange.
 boolean sendSync(org.ow2.petals.component.framework.api.message.Exchange exchange)
          Send synchronously an exchange.
 

Method Detail

getLogger

java.util.logging.Logger getLogger()
Get the logger

Returns:
the logger

getSUConsumes

java.util.List<org.ow2.petals.component.framework.jbidescriptor.generated.Consumes> getSUConsumes(javax.jbi.servicedesc.ServiceEndpoint endpoint)
get the Consumes for an endpoint

Parameters:
endpoint - The endpoint
Returns:
The Consumes of the endpoint

sendSync

boolean sendSync(org.ow2.petals.component.framework.api.message.Exchange exchange)
                 throws javax.jbi.messaging.MessagingException
Send synchronously an exchange. The response will be provided into the same exchange

Parameters:
exchange - The exchange to send
Returns:
true if the exchange was sent, false else (reached timeout, technical error,...)
Throws:
javax.jbi.messaging.MessagingException

sendAsync

void sendAsync(org.ow2.petals.component.framework.api.message.Exchange exchange,
               org.ow2.petals.component.framework.process.async.AsyncContext asyncContext)
               throws javax.jbi.messaging.MessagingException
Send asynchronously an exchange. The response will be provided as an asynchronous exchange

Parameters:
exchange - The exchange to send
asyncContext - The asynchronous context, provided on the response
Throws:
javax.jbi.messaging.MessagingException

send

void send(org.ow2.petals.component.framework.api.message.Exchange exchange)
          throws javax.jbi.messaging.MessagingException
Send asynchronously an exchange. The response will be provided as a synchronous exchange

Parameters:
exchange - The exchange to send
Throws:
javax.jbi.messaging.MessagingException

createConsumeExchange

org.ow2.petals.component.framework.api.message.Exchange createConsumeExchange(org.ow2.petals.component.framework.jbidescriptor.generated.Consumes consumes)
                                                                              throws javax.jbi.messaging.MessagingException,
                                                                                     org.ow2.petals.component.framework.api.exception.PEtALSCDKException
Create an exchange from a Consumes

Parameters:
consumes - The Consumes used as JBI Consumer of the exchange
Returns:
The exchange created
Throws:
javax.jbi.messaging.MessagingException
org.ow2.petals.component.framework.api.exception.PEtALSCDKException

getExtensions

org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions getExtensions()
Get the extensions

Returns:
The extensions


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.