public class TransportableImpl extends Object implements Transportable
Transportable
.Constructor and Description |
---|
TransportableImpl(String theMessageText)
Creates a new instance with no associated metadata (metadata can
be added later using
getMetadata() . |
TransportableImpl(String theMessageText,
Map<String,Object> theMetadata)
Creates a new instance with specified metadata (further metadata can
be added later using
getMetadata() . |
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
Map<String,Object> |
getMetadata() |
public TransportableImpl(String theMessageText)
getMetadata()
.theMessageText
- the text of an HL7 messagepublic TransportableImpl(String theMessageText, Map<String,Object> theMetadata)
getMetadata()
.theMessageText
- the text of an HL7 messagetheMetadata
- metadata associated with the message (typical examples
would be selected field values for routing)public String getMessage()
getMessage
in interface Transportable
Transportable.getMessage()
public Map<String,Object> getMetadata()
getMetadata
in interface Transportable
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.Transportable.getMetadata()
Copyright © 2001–2017 University Health Network. All rights reserved.