org.jboss.soa.esb.couriers
Class CourierFactory

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

public class CourierFactory
extends java.lang.Object


Method Summary
static Courier getCourier(EPR toEPR)
          Obtain a courier which can perform deliveries only and prime it with the "to address" (toEPR).
static TwoWayCourier getCourier(EPR toEPR, EPR replyToEPR)
          Obtain a courier which can perform both deliveries and pickups and prime it with the "to address" (toEPR) and the "replyTo address" (replyToEPR).
static CourierFactory getInstance(java.lang.Object obj)
           
static TwoWayCourier getPickupCourier(EPR replyToEPR)
          Obtain a courier which can perform pickups only and prime it with the "to address" (toEPR) and the "replyTo address" (replyToEPR).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CourierFactory getInstance(java.lang.Object obj)

getCourier

public static Courier getCourier(EPR toEPR)
                          throws CourierException
Obtain a courier which can perform deliveries only and prime it with the "to address" (toEPR).

Parameters:
toEPR - - the 'to address', the address on where to deliver a Message.
Returns:
Throws:
CourierException - if the specific courier implementation cannot be created.

getPickupCourier

public static TwoWayCourier getPickupCourier(EPR replyToEPR)
                                      throws CourierException
Obtain a courier which can perform pickups only and prime it with the "to address" (toEPR) and the "replyTo address" (replyToEPR).

Parameters:
toEPR - - the 'to address', the address on where to deliver a Message.
Returns:
Throws:
CourierException - if the specific courier implementation cannot be created.

getCourier

public static TwoWayCourier getCourier(EPR toEPR,
                                       EPR replyToEPR)
                                throws CourierException
Obtain a courier which can perform both deliveries and pickups and prime it with the "to address" (toEPR) and the "replyTo address" (replyToEPR).

Parameters:
toEPR - - the 'to address', the address on where to deliver a Message.
Returns:
Throws:
CourierException - if the specific courier implementation cannot be created.