|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.infoway.messagebuilder.transport.mohawk.MohawkTransportLayer
public class MohawkTransportLayer
Implementation of a transport layer for sending messages to Mohawk HIAL via SOAP. SOAP is one of two common interfaces for HL7 messages.
Makes use of Apache Commons HttpClient for communication.
Constructor Summary | |
---|---|
MohawkTransportLayer()
Constructs a Mohawk transport layer using a well-known url. |
|
MohawkTransportLayer(Client client,
String url)
Constructs a Mohawk transport layer for the given url. |
|
MohawkTransportLayer(String url)
Constructs a Mohawk transport layer for the given url. |
Method Summary | |
---|---|
String |
sendRequestAndGetResponse(CredentialsProvider credentialsProvider,
RequestMessage requestMessage)
Sends a request message synchronously and returns a response message as a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MohawkTransportLayer()
Constructs a Mohawk transport layer using a well-known url. Makes use of the default tranport mechanism (HttpClient)
public MohawkTransportLayer(String url)
Constructs a Mohawk transport layer for the given url. Makes use of the default tranport mechanism (HttpClient)
url
- the target url to send messages topublic MohawkTransportLayer(Client client, String url)
Constructs a Mohawk transport layer for the given url. Makes use of provided client instead of the default HttpClient.
client
- the transport client to useurl
- the target url to send messages toMethod Detail |
---|
public String sendRequestAndGetResponse(CredentialsProvider credentialsProvider, RequestMessage requestMessage) throws TransportLayerException
sendRequestAndGetResponse
in interface TransportLayer
credentialsProvider
- object to obtain Credentials fromrequestMessage
- the message to be sent
TransportLayerException
- if any problems occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |