Class TransportableImpl

java.lang.Object
ca.uhn.hl7v2.protocol.impl.TransportableImpl
All Implemented Interfaces:
Transportable

public class TransportableImpl extends Object implements Transportable
Default implementation of Transportable.
Version:
$Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:26 $ by $Author: jamesagnew $
Author:
Bryan Tripp
  • Constructor Details

    • TransportableImpl

      public TransportableImpl(String theMessageText)
      Creates a new instance with no associated metadata (metadata can be added later using getMetadata().
      Parameters:
      theMessageText - the text of an HL7 message
    • TransportableImpl

      public TransportableImpl(String theMessageText, Map<String,Object> theMetadata)
      Creates a new instance with specified metadata (further metadata can be added later using getMetadata().
      Parameters:
      theMessageText - the text of an HL7 message
      theMetadata - metadata associated with the message (typical examples would be selected field values for routing)
  • Method Details

    • getMessage

      public String getMessage()
      Specified by:
      getMessage in interface Transportable
      Returns:
      the text of an HL7 message (either ER7 or XML encoding).
      See Also:
    • getMetadata

      Specified by:
      getMetadata in interface Transportable
      Returns:
      metadata associated with the message. If the message is being sent to a TransportLayer, this may include selected message fields (eg to facilitate routing based on MSH fields without re-parsing the message). If the message is being received, this may include information such as the IP address of the server from which the message was received (this depends on the underlying TransportLayer used). Message fields are keyed with Terser path names.
      See Also: