org.jboss.soa.esb.addressing.util
Class DefaultReplyTo

java.lang.Object
  extended by org.jboss.soa.esb.addressing.util.DefaultReplyTo

public class DefaultReplyTo
extends java.lang.Object

Provide some helper routines for common requirements.


Constructor Summary
DefaultReplyTo()
           
 
Method Summary
static EPR getReplyTo(EPR toEpr)
          Obtain a default replyToEPR (based on the toEpr) to which we can reply to.
static EPR getReplyToAddress(Message message)
          Get the ReplyTo EPR on this address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultReplyTo

public DefaultReplyTo()
Method Detail

getReplyTo

public static EPR getReplyTo(EPR toEpr)
                      throws CourierException,
                             MalformedEPRException
Obtain a default 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:
EPR - the EPR to which the pickup will be delivered.
Throws:
URISyntaxException, - CourierException
CourierException
MalformedEPRException

getReplyToAddress

public static final EPR getReplyToAddress(Message message)
Get the ReplyTo EPR on this address. If it is not set, then try to return the From EPR. If that is not set, then return null.

Parameters:
message - the message to work on.
Returns:
the ReplyTo EPR, or the From EPR, or null, in that order.