public class MllpSocketReader extends Object
Constructor and Description |
---|
MllpSocketReader(Socket socket,
int receiveTimeout,
int readTimeout,
boolean acknowledgementReader) |
Modifier and Type | Method and Description |
---|---|
void |
closeConnection(String reasonMessage) |
ByteArrayOutputStream |
getReadAdditionalStream() |
int |
getReadTimeout() |
byte[] |
getReceiveBuffer() |
int |
getReceiveTimeout() |
Socket |
getSocket() |
boolean |
isAcknowledgementReader() |
byte[] |
readEnvelopedPayload() |
byte[] |
readEnvelopedPayload(byte[] hl7MessageBytes) |
byte[] |
readEnvelopedPayload(Integer initialByte) |
protected byte[] |
readEnvelopedPayload(Integer initialByte,
byte[] hl7MessageBytes) |
void |
resetConnection(String reasonMessage) |
public MllpSocketReader(Socket socket, int receiveTimeout, int readTimeout, boolean acknowledgementReader)
public byte[] readEnvelopedPayload() throws MllpException
MllpException
public byte[] readEnvelopedPayload(byte[] hl7MessageBytes) throws MllpException
MllpException
public byte[] readEnvelopedPayload(Integer initialByte) throws MllpException
MllpException
protected byte[] readEnvelopedPayload(Integer initialByte, byte[] hl7MessageBytes) throws MllpException
MllpException
public void closeConnection(String reasonMessage)
public void resetConnection(String reasonMessage)
public Socket getSocket()
public int getReceiveTimeout()
public int getReadTimeout()
public byte[] getReceiveBuffer()
public boolean isAcknowledgementReader()
public ByteArrayOutputStream getReadAdditionalStream()
Apache Camel