org.jboss.soa.esb.couriers
Class CourierUtil

java.lang.Object
  extended by org.jboss.soa.esb.couriers.CourierUtil

public class CourierUtil
extends java.lang.Object


Field Summary
static java.lang.String CORRELATION_ID_TAG
           
 
Method Summary
static java.lang.String getReplySelector()
          We will be listening the same queue, but with a 'temporary' message selector based of a UUID.
static EPR getTemporaryReplyToEpr(EPR toEpr)
          Build a temporary replyToEPR, based on the toEpr, to which we can reply to.
static java.util.List<KeyValuePair> propertiesFromSelector(java.lang.String selector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CORRELATION_ID_TAG

public static final java.lang.String CORRELATION_ID_TAG
See Also:
Constant Field Values
Method Detail

propertiesFromSelector

public static java.util.List<KeyValuePair> propertiesFromSelector(java.lang.String selector)
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

getReplySelector

public static java.lang.String getReplySelector()
We will be listening the same queue, but with a 'temporary' message selector based of a UUID.

Parameters:
message - to which we ill add the CORRELATION_ID_TAG.
Returns:
the generated unique reply selector.

getTemporaryReplyToEpr

public static EPR getTemporaryReplyToEpr(EPR toEpr)
                                  throws java.net.URISyntaxException,
                                         CourierException
Build a temporary replyToEPR, based on the toEpr, to which we can reply to.

Parameters:
toEpr - - the toEPR which will be used a basis to generate the replyToEPR.
Returns:
replyToEPR - the EPR to which the pickup will be delivered.
Throws:
URISyntaxException, - CourierException
java.net.URISyntaxException
CourierException