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