@UriEndpoint(scheme="mllp", title="MLLP", syntax="mllp:hostname:port", consumerClass=MllpTcpServerConsumer.class, label="mllp") public class MllpEndpoint extends org.apache.camel.impl.DefaultEndpoint
Modifier and Type | Field and Description |
---|---|
static char |
END_OF_BLOCK |
static char |
END_OF_DATA |
static int |
END_OF_STREAM |
static char |
MESSAGE_TERMINATOR |
static char |
SEGMENT_DELIMITER |
static char |
START_OF_BLOCK |
Constructor and Description |
---|
MllpEndpoint(String uri,
MllpComponent component) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Exchange |
createExchange(org.apache.camel.Exchange exchange) |
org.apache.camel.Exchange |
createExchange(org.apache.camel.ExchangePattern exchangePattern) |
org.apache.camel.Producer |
createProducer() |
int |
getAcceptTimeout() |
int |
getBacklog() |
int |
getBindRetryInterval() |
int |
getBindTimeout() |
String |
getCharsetName() |
int |
getConnectTimeout() |
org.apache.camel.ExchangePattern |
getExchangePattern() |
String |
getHostname() |
int |
getMaxReceiveTimeouts() |
int |
getPort() |
int |
getReadTimeout() |
int |
getReceiveBufferSize() |
int |
getReceiveTimeout() |
int |
getSendBufferSize() |
boolean |
isAutoAck() |
boolean |
isBufferWrites() |
boolean |
isHl7Headers() |
boolean |
isKeepAlive() |
boolean |
isReuseAddress() |
boolean |
isSingleton() |
boolean |
isSynchronous() |
boolean |
isTcpNoDelay() |
boolean |
isValidatePayload() |
void |
setAcceptTimeout(int acceptTimeout)
Timeout (in milliseconds) while waiting for a TCP connection
TCP Server Only
|
void |
setAutoAck(boolean autoAck)
Enable/Disable the automatic generation of a MLLP Acknowledgement
MLLP Consumers only
|
void |
setBacklog(int backlog)
The maximum queue length for incoming connection indications (a request to connect) is set to the backlog parameter.
|
void |
setBindRetryInterval(int bindRetryInterval)
TCP Server Only - The number of milliseconds to wait between bind attempts
|
void |
setBindTimeout(int bindTimeout)
TCP Server Only - The number of milliseconds to retry binding to a server port
|
void |
setBufferWrites(boolean bufferWrites)
Enable/Disable the validation of HL7 Payloads
If enabled, MLLP Payloads are buffered and written to the external system in a single write(byte[]) operation.
|
void |
setCharsetName(String charsetName)
Set the CamelCharsetName property on the exchange
|
void |
setConnectTimeout(int connectTimeout)
Timeout (in milliseconds) for establishing for a TCP connection
TCP Client only
|
void |
setHl7Headers(boolean hl7Headers)
Enable/Disable the automatic generation of message headers from the HL7 Message
MLLP Consumers only
|
void |
setHostname(String hostname)
Hostname or IP for connection for the TCP connection.
|
void |
setKeepAlive(boolean keepAlive)
Enable/disable the SO_KEEPALIVE socket option.
|
void |
setMaxReceiveTimeouts(int maxReceiveTimeouts)
The maximum number of timeouts (specified by receiveTimeout) allowed before the TCP Connection will be reset.
|
void |
setPort(int port)
Port number for the TCP connection
|
void |
setReadTimeout(int readTimeout)
The SO_TIMEOUT value (in milliseconds) used after the start of an MLLP frame has been received
|
void |
setReceiveBufferSize(Integer receiveBufferSize)
Sets the SO_RCVBUF option to the specified value (in bytes)
|
void |
setReceiveTimeout(int receiveTimeout)
The SO_TIMEOUT value (in milliseconds) used when waiting for the start of an MLLP frame
|
void |
setReuseAddress(boolean reuseAddress)
Enable/disable the SO_REUSEADDR socket option.
|
void |
setSendBufferSize(Integer sendBufferSize)
Sets the SO_SNDBUF option to the specified value (in bytes)
|
void |
setTcpNoDelay(boolean tcpNoDelay)
Enable/disable the TCP_NODELAY socket option.
|
void |
setValidatePayload(boolean validatePayload)
Enable/Disable the validation of HL7 Payloads
If enabled, HL7 Payloads received from external systems will be validated (see Hl7Util.generateInvalidPayloadExceptionMessage for details on the validation).
|
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public static final char START_OF_BLOCK
public static final char END_OF_BLOCK
public static final char END_OF_DATA
public static final int END_OF_STREAM
public static final char SEGMENT_DELIMITER
public static final char MESSAGE_TERMINATOR
public MllpEndpoint(String uri, MllpComponent component)
public org.apache.camel.ExchangePattern getExchangePattern()
getExchangePattern
in class org.apache.camel.impl.DefaultEndpoint
public org.apache.camel.Exchange createExchange(org.apache.camel.ExchangePattern exchangePattern)
createExchange
in interface org.apache.camel.Endpoint
createExchange
in class org.apache.camel.impl.DefaultEndpoint
public org.apache.camel.Exchange createExchange(org.apache.camel.Exchange exchange)
createExchange
in interface org.apache.camel.Endpoint
createExchange
in class org.apache.camel.impl.DefaultEndpoint
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
Exception
public boolean isSynchronous()
isSynchronous
in class org.apache.camel.impl.DefaultEndpoint
public boolean isSingleton()
public String getCharsetName()
public void setCharsetName(String charsetName)
charsetName
- the charsetpublic String getHostname()
public void setHostname(String hostname)
hostname
- Hostname or IPpublic int getPort()
public void setPort(int port)
port
- TCP portpublic int getBacklog()
public void setBacklog(int backlog)
public int getBindTimeout()
public void setBindTimeout(int bindTimeout)
public int getBindRetryInterval()
public void setBindRetryInterval(int bindRetryInterval)
public int getAcceptTimeout()
public void setAcceptTimeout(int acceptTimeout)
acceptTimeout
- timeout in millisecondspublic int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
connectTimeout
- timeout in millisecondspublic int getReceiveTimeout()
public void setReceiveTimeout(int receiveTimeout)
receiveTimeout
- timeout in millisecondspublic int getMaxReceiveTimeouts()
public void setMaxReceiveTimeouts(int maxReceiveTimeouts)
maxReceiveTimeouts
- maximum number of receiveTimeoutspublic int getReadTimeout()
public void setReadTimeout(int readTimeout)
readTimeout
- timeout in millisecondspublic boolean isKeepAlive()
public void setKeepAlive(boolean keepAlive)
keepAlive
- enable SO_KEEPALIVE when true; otherwise disable SO_KEEPALIVEpublic boolean isTcpNoDelay()
public void setTcpNoDelay(boolean tcpNoDelay)
tcpNoDelay
- enable TCP_NODELAY when true; otherwise disable TCP_NODELAYpublic boolean isReuseAddress()
public void setReuseAddress(boolean reuseAddress)
reuseAddress
- enable SO_REUSEADDR when true; otherwise disable SO_REUSEADDRpublic int getReceiveBufferSize()
public void setReceiveBufferSize(Integer receiveBufferSize)
receiveBufferSize
- the SO_RCVBUF option value. If null, the system default is usedpublic int getSendBufferSize()
public void setSendBufferSize(Integer sendBufferSize)
sendBufferSize
- the SO_SNDBUF option value. If null, the system default is usedpublic boolean isAutoAck()
public void setAutoAck(boolean autoAck)
autoAck
- enabled if true, otherwise disabledpublic boolean isHl7Headers()
public void setHl7Headers(boolean hl7Headers)
hl7Headers
- enabled if true, otherwise disabledpublic boolean isValidatePayload()
public void setValidatePayload(boolean validatePayload)
validatePayload
- enabled if true, otherwise disabledpublic boolean isBufferWrites()
public void setBufferWrites(boolean bufferWrites)
bufferWrites
- enabled if true, otherwise disabledApache Camel