com.iplanet.trustbase.initiator
Interface TransportAdapter
- All Known Implementing Classes:
- XURLTransportAdapter, HTTPTransportAdapter
- public interface TransportAdapter
The TransportAdapter is responsible for managing the delivery and reception of a message.
- See Also:
TransportAdapterException
,
ConfigAdapterException
Method Summary |
byte[] |
sendReceive(byte[] data,
java.lang.String url,
java.lang.String messageType)
Send and receive the message data |
sendReceive
public byte[] sendReceive(byte[] data,
java.lang.String url,
java.lang.String messageType)
throws TransportAdapterException,
ConfigAdapterException
- Send and receive the message data
- Parameters:
data
- the data to be sentlocation
- the responder URLmessageType
- the message type of the request such as paymenrequest. This is later resolved by a concrete implementation of the TransportAdapter into a specific mimeType.- Returns:
- the data that was returned from the responder
- Throws:
TransportAdapterException
- on any transport error