ca.uhn.hl7v2.protocol.impl
Class MLLPTransport

java.lang.Object
  extended by ca.uhn.hl7v2.protocol.impl.AbstractTransport
      extended by ca.uhn.hl7v2.protocol.impl.MLLPTransport
All Implemented Interfaces:
TransportLayer

public class MLLPTransport
extends AbstractTransport
implements 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
MLLPTransport(StreamSource theStreamSource)
           
 
Method Summary
 void doConnect()
          Performs connection as described in TransportLayer.connect().
 void doDisconnect()
          Performs disconnection as described in TransportLayer.disconnect().
 Transportable doReceive()
          Called by receive(), which then adds common metadata.
 void doSend(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, send
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ca.uhn.hl7v2.protocol.TransportLayer
connect, disconnect, getCommonMetadata, isConnected, receive, send
 

Constructor Detail

MLLPTransport

public MLLPTransport(StreamSource theStreamSource)
              throws TransportException
Parameters:
theStreamSource - the provider of input and output streams connected to the remote server
Throws:
TransportException
Method Detail

doSend

public void doSend(Transportable theMessage)
            throws TransportException
Description copied from class: AbstractTransport
The method send() delegates to this method after checking whether we are connected.

Specified by:
doSend in class AbstractTransport
Throws:
TransportException
See Also:
ca.uhn.hl7v2.protocol.AstractTransport#doSend(ca.uhn.hl7v2.protocol.Transportable)

doReceive

public Transportable doReceive()
                        throws TransportException
Description copied from class: AbstractTransport
Called by receive(), which then adds common metadata.

Specified by:
doReceive in class AbstractTransport
Returns:
Transportable the next available message
Throws:
TransportException
See Also:
AbstractTransport.doReceive()

doConnect

public void doConnect()
               throws TransportException
Description copied from class: AbstractTransport
Performs connection as described in TransportLayer.connect(). The connect() method of this class delegates to doConnect() after some internal housekeeping.

Specified by:
doConnect in class AbstractTransport
Throws:
TransportException
See Also:
ca.uhn.hl7v2.protocol.AbstractTransport#doConnect()

doDisconnect

public void doDisconnect()
                  throws TransportException
Description copied from class: AbstractTransport
Performs disconnection as described in TransportLayer.disconnect(). The disconnect() method of this class delegates to doDisconnect() after some internal housekeeping.

Specified by:
doDisconnect in class AbstractTransport
Throws:
TransportException
See Also:
TransportLayer.disconnect()


Copyright © 2001-2011 University Health Network. All Rights Reserved.