org.ow2.petals.transport.util
Class TransporterUtil
java.lang.Object
org.ow2.petals.transport.util.TransporterUtil
public final class TransporterUtil
- extends java.lang.Object
- Author:
- garciap
|
Method Summary |
static boolean |
getSyncMode(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator,
boolean isResponse)
Return the synchronized mode related to a message exchange. |
static boolean |
setSendSyncProperties(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
Set the properties to the message exchange to specify that a synchronous
response is expected |
static boolean |
updateSyncProperties(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
Update the sync properties of the message exchange |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY_SENDSYNC_PROVIDER
public static final java.lang.String PROPERTY_SENDSYNC_PROVIDER
- See Also:
- Constant Field Values
PROPERTY_SENDSYNC_CONSUMER
public static final java.lang.String PROPERTY_SENDSYNC_CONSUMER
- See Also:
- Constant Field Values
PROPERTY_OVERSENDSYNC
public static final java.lang.String PROPERTY_OVERSENDSYNC
- See Also:
- Constant Field Values
TransporterUtil
public TransporterUtil()
setSendSyncProperties
public static final boolean setSendSyncProperties(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
throws javax.jbi.messaging.MessagingException
- Set the properties to the message exchange to specify that a synchronous
response is expected
- Parameters:
exchange - overSyncExchange -
- Returns:
true if the it is an 'overSync' exchange
- Throws:
javax.jbi.messaging.MessagingException - The sync_send() is forbidden for acknowledgment
send
updateSyncProperties
public static final boolean updateSyncProperties(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
- Update the sync properties of the message exchange
- Parameters:
exchange -
- Returns:
true if the it is an 'overSync' exchange
getSyncMode
public static final boolean getSyncMode(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator,
boolean isResponse)
- Return the synchronized mode related to a message exchange.
- Parameters:
messageExchange - the message exchange to checkisResponse - true if it is a check for a response message, false otherwise
- Returns:
- true if message is in CONSUMER role and it is a response or if
message is in PROVIDER role and it isn't a response,
false otherwise
Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.