Package ca.uhn.hl7v2.protocol.impl
Class TransportableImpl
java.lang.Object
ca.uhn.hl7v2.protocol.impl.TransportableImpl
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionTransportableImpl(String theMessageText) Creates a new instance with no associated metadata (metadata can be added later usinggetMetadata().TransportableImpl(String theMessageText, Map<String, Object> theMetadata) Creates a new instance with specified metadata (further metadata can be added later usinggetMetadata(). -
Method Summary
-
Constructor Details
-
TransportableImpl
Creates a new instance with no associated metadata (metadata can be added later usinggetMetadata().- Parameters:
theMessageText- the text of an HL7 message
-
TransportableImpl
Creates a new instance with specified metadata (further metadata can be added later usinggetMetadata().- Parameters:
theMessageText- the text of an HL7 messagetheMetadata- metadata associated with the message (typical examples would be selected field values for routing)
-
-
Method Details
-
getMessage
- Specified by:
getMessagein interfaceTransportable- Returns:
- the text of an HL7 message (either ER7 or XML encoding).
- See Also:
-
getMetadata
- Specified by:
getMetadatain interfaceTransportable- 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 underlyingTransportLayerused). Message fields are keyed withTerserpath names. - See Also:
-