org.bss.esb.transport
Interface TransportHandler

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
EsbRedeliveryHandler, JmsHandler, WebServiceHandler

public interface TransportHandler
extends java.io.Serializable

A transport handler responsible for sending a message to a destination for which is it configured. Depending on the implementation of this interface, the destination could be anything such as:

 1) An Email address
 2) A FAX number
 3) An FTP location
 4) A WebService call over HTTP(S)
 5) Any other endpoint using a valid protocol
 
Initialization of the TransportHandler is done via its its setter methods as specified in the EsbConfiguration XML. The implementation class of this interface must have one public no-args constructor.

Version:
1.0
Author:
Balwinder Sodhi

Method Summary
 void transportMessage(java.lang.Object message)
          Transports the message.
 

Method Detail

transportMessage

public void transportMessage(java.lang.Object message)
                      throws TransportException
Transports the message. The implementation class should be able to handle the passed in message. This method should be invoked only after this TransportHandler instance has been initialized.

Parameters:
message - The message to be transported.
Throws:
TransportException - Thrown if the handler fails to send the passed in message to the destination specified while initializing this handler instance.


Copyright © 2005 Balwinder Sodhi. All Rights Reserved.