Package ca.uhn.hl7v2.protocol.impl
Class MLLPTransport
java.lang.Object
ca.uhn.hl7v2.protocol.impl.AbstractTransport
ca.uhn.hl7v2.protocol.impl.MLLPTransport
- All Implemented Interfaces:
TransportLayer
An implementation of the HL7 Minimal Lower Layer Protocol (see
HL7 implementation guide appendix C). Note that this is the most common
protocol used in HL7 interfaces.
- Version:
- $Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:26 $ by $Author: jamesagnew $
- Author:
- Bryan Tripp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms connection as described in TransportLayer.connect().voidPerforms disconnection as described in TransportLayer.disconnect().Called by receive(), which then adds common metadata.voiddoSend(Transportable theMessage) The method send() delegates to this method after checking whether we are connected.Methods inherited from class ca.uhn.hl7v2.protocol.impl.AbstractTransport
connect, disconnect, getCommonMetadata, isConnected, receive, sendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.protocol.TransportLayer
connect, disconnect, getCommonMetadata, isConnected, receive, send
-
Constructor Details
-
MLLPTransport
- Parameters:
theStreamSource- the provider of input and output streams connected to the remote server- Throws:
TransportException
-
-
Method Details
-
doSend
Description copied from class:AbstractTransportThe method send() delegates to this method after checking whether we are connected.- Specified by:
doSendin classAbstractTransport- Throws:
TransportException
-
doReceive
Description copied from class:AbstractTransportCalled by receive(), which then adds common metadata.- Specified by:
doReceivein classAbstractTransport- Returns:
- Transportable the next available message
- Throws:
TransportException- See Also:
-
doConnect
Description copied from class:AbstractTransportPerforms connection as described in TransportLayer.connect(). The connect() method of this class delegates to doConnect() after some internal housekeeping.- Specified by:
doConnectin classAbstractTransport- Throws:
TransportException
-
doDisconnect
Description copied from class:AbstractTransportPerforms disconnection as described in TransportLayer.disconnect(). The disconnect() method of this class delegates to doDisconnect() after some internal housekeeping.- Specified by:
doDisconnectin classAbstractTransport- Throws:
TransportException- See Also:
-