public class MessageSendable extends Object implements IResponseSendable<ca.uhn.hl7v2.model.Message>
| Constructor and Description |
|---|
MessageSendable(ca.uhn.hl7v2.model.Message theMessage)
Constructor
|
MessageSendable(ca.uhn.hl7v2.model.Message theMessage,
ca.uhn.hl7v2.parser.Parser theParser)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
EncodingStyle |
getEncodingStyle() |
ca.uhn.hl7v2.model.Message |
getMessage() |
ResponseCode |
getResponseCode() |
void |
writeMessage(Writer theWriter) |
public MessageSendable(ca.uhn.hl7v2.model.Message theMessage) throws ca.uhn.hl7v2.HL7Exception
theMessage - The message to returnca.uhn.hl7v2.HL7Exception - If message could not be encodedpublic MessageSendable(ca.uhn.hl7v2.model.Message theMessage, ca.uhn.hl7v2.parser.Parser theParser) throws ca.uhn.hl7v2.HL7Exception
theMessage - The message to returntheParser - The parser to use to encode the messageca.uhn.hl7v2.HL7Exception - If message could not be encodedpublic void writeMessage(Writer theWriter) throws IOException
writeMessage in interface ISendable<ca.uhn.hl7v2.model.Message>IOExceptionpublic EncodingStyle getEncodingStyle()
getEncodingStyle in interface ISendable<ca.uhn.hl7v2.model.Message>public ResponseCode getResponseCode()
getResponseCode in interface IResponseSendable<ca.uhn.hl7v2.model.Message>public ca.uhn.hl7v2.model.Message getMessage()
getMessage in interface ISendable<ca.uhn.hl7v2.model.Message>Copyright © 2012-2014 University Health Network. All Rights Reserved.