ca.uhn.hl7v2.protocol.impl
Class TransportableImpl
java.lang.Object
ca.uhn.hl7v2.protocol.impl.TransportableImpl
- All Implemented Interfaces:
- Transportable
public class TransportableImpl
- extends java.lang.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 Summary |
TransportableImpl(java.lang.String theMessageText)
Creates a new instance with no associated metadata (metadata can
be added later using getMetadata() . |
TransportableImpl(java.lang.String theMessageText,
java.util.Map theMetadata)
Creates a new instance with specified metadata (further metadata can
be added later using getMetadata() . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransportableImpl
public TransportableImpl(java.lang.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(java.lang.String theMessageText,
java.util.Map theMetadata)
- Creates a new instance with specified metadata (further metadata can
be added later using
getMetadata()
.
- Parameters:
theMessageText
- the text of an HL7 messagetheMetadata
- metadata associated with the message (typical examples
would be selected field values for routing)
getMessage
public java.lang.String getMessage()
- Specified by:
getMessage
in interface Transportable
- Returns:
- the text of an HL7 message (either ER7 or XML encoding).
- See Also:
Transportable.getMessage()
getMetadata
public java.util.Map 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:
Transportable.getMetadata()
Copyright © 2001-2011 University Health Network. All Rights Reserved.