ca.infoway.messagebuilder.transport
Interface TransportLayer

Package class diagram package TransportLayer
All Known Subinterfaces:
AsynchronousTransportLayer
All Known Implementing Classes:
MohawkTransportLayer, RestTransportLayer, SystemOutTransportLayer

public interface TransportLayer

A transport mechanism for sending requests (as requestMessages) and receiving responses (as strings).

Author:
Intelliware Development sharpen.ignore - transport - TBD!

Method Summary
 String sendRequestAndGetResponse(CredentialsProvider credentialsProvider, RequestMessage requestMessage)
          Sends a RequestMessage using the provided credentials and returns a response message as a string.
 

Method Detail

sendRequestAndGetResponse

String sendRequestAndGetResponse(CredentialsProvider credentialsProvider,
                                 RequestMessage requestMessage)
                                 throws TransportLayerException

Sends a RequestMessage using the provided credentials and returns a response message as a string.

Parameters:
credentialsProvider - a way to obtain credentials
requestMessage - the message to be sent across the transport layer
Returns:
the response message as a string
Throws:
TransportLayerException - if any problems occurred during send or receive of the message


Copyright © 2013. All Rights Reserved.