Constructor and Description |
---|
MllpConfiguration() |
MllpConfiguration(MllpConfiguration source) |
Modifier and Type | Method and Description |
---|---|
MllpConfiguration |
copy() |
void |
copy(MllpConfiguration source) |
static void |
copy(MllpConfiguration source,
MllpConfiguration target) |
boolean |
equals(Object o) |
int |
getAcceptTimeout() |
Integer |
getBacklog() |
int |
getBindRetryInterval() |
int |
getBindTimeout() |
Charset |
getCharset() |
Charset |
getCharset(org.apache.camel.Exchange exchange) |
Charset |
getCharset(org.apache.camel.Exchange exchange,
byte[] hl7Bytes) |
String |
getCharsetName() |
int |
getConnectTimeout() |
org.apache.camel.ExchangePattern |
getExchangePattern() |
boolean |
getHl7Headers() |
Integer |
getIdleTimeout() |
Boolean |
getKeepAlive() |
int |
getMaxConcurrentConsumers() |
Integer |
getMaxReceiveTimeouts()
Deprecated.
Use the idleTimeout URI parameter
|
int |
getReadTimeout() |
int |
getReceiveBufferSize() |
int |
getReceiveTimeout() |
Boolean |
getReuseAddress() |
int |
getSendBufferSize() |
Boolean |
getTcpNoDelay() |
boolean |
hasBacklog() |
boolean |
hasCharsetName() |
int |
hashCode() |
boolean |
hasIdleTimeout() |
boolean |
hasKeepAlive() |
boolean |
hasMaxReceiveTimeouts()
Deprecated.
Use the idleTimeout URI parameter
|
boolean |
hasReceiveBufferSize() |
boolean |
hasReuseAddress() |
boolean |
hasSendBufferSize() |
boolean |
hasTcpNoDelay() |
boolean |
isAutoAck() |
boolean |
isBridgeErrorHandler() |
boolean |
isBufferWrites() |
boolean |
isHl7Headers() |
boolean |
isLenientBind() |
boolean |
isRequireEndOfData() |
boolean |
isStringPayload() |
boolean |
isSynchronous() |
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(Integer 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 |
setBridgeErrorHandler(boolean bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the
consumer is trying to receive incoming messages, or the likes, will now be processed as a message and handled by
the routing Error Handler.
|
void |
setBufferWrites(boolean bufferWrites)
Deprecated.
the parameter will be ignored
|
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 |
setExchangePattern(org.apache.camel.ExchangePattern exchangePattern)
Sets the exchange pattern when the consumer creates an exchange.
|
void |
setHl7Headers(boolean hl7Headers)
Enable/Disable the automatic generation of message headers from the HL7 Message
MLLP Consumers only
|
void |
setIdleTimeout(Integer idleTimeout)
The approximate idle time allowed before the Client TCP Connection will be reset.
|
void |
setKeepAlive(Boolean keepAlive)
Enable/disable the SO_KEEPALIVE socket option.
|
void |
setLenientBind(boolean lenientBind)
TCP Server Only - Allow the endpoint to start before the TCP ServerSocket is bound.
|
void |
setMaxConcurrentConsumers(int maxConcurrentConsumers)
The maximum number of concurrent MLLP Consumer connections that will be allowed.
|
void |
setMaxReceiveTimeouts(Integer maxReceiveTimeouts)
Deprecated.
Use the idleTimeout URI parameter. For backward compibility, setting this
parameter will result in an idle timeout of maxReceiveTimeouts * receiveTimeout.
If idleTimeout is also specified, this parameter will be ignored.
|
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 |
setRequireEndOfData(boolean requireEndOfData)
Enable/Disable strict compliance to the MLLP standard.
|
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 |
setStringPayload(boolean stringPayload)
Enable/Disable converting the payload to a String.
|
void |
setSynchronous(boolean synchronous)
Sets whether synchronous processing should be strictly used (this component only supports synchronous
operations).
|
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).
|
String |
toString() |
public MllpConfiguration()
public MllpConfiguration(MllpConfiguration source)
public static void copy(MllpConfiguration source, MllpConfiguration target)
public MllpConfiguration copy()
public void copy(MllpConfiguration source)
public boolean isBridgeErrorHandler()
public void setBridgeErrorHandler(boolean bridgeErrorHandler)
bridgeErrorHandler
- public org.apache.camel.ExchangePattern getExchangePattern()
public void setExchangePattern(org.apache.camel.ExchangePattern exchangePattern)
exchangePattern
- public boolean isSynchronous()
public void setSynchronous(boolean synchronous)
synchronous
- public boolean hasCharsetName()
public String getCharsetName()
public Charset getCharset()
public Charset getCharset(org.apache.camel.Exchange exchange)
public Charset getCharset(org.apache.camel.Exchange exchange, byte[] hl7Bytes)
public void setCharsetName(String charsetName)
charsetName
- the charsetpublic boolean hasBacklog()
public Integer getBacklog()
public void setBacklog(Integer backlog)
public int getBindTimeout()
public void setBindTimeout(int bindTimeout)
public int getBindRetryInterval()
public void setBindRetryInterval(int bindRetryInterval)
public int getAcceptTimeout()
public boolean isLenientBind()
public void setLenientBind(boolean lenientBind)
lenientBind
- if true, the ServerSocket will be bound asynchronously; otherwise the ServerSocket will be
bound synchronously.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 getMaxConcurrentConsumers()
public void setMaxConcurrentConsumers(int maxConcurrentConsumers)
maxConcurrentConsumers
- the maximum number of concurrent consumer connections allowed@Deprecated public boolean hasMaxReceiveTimeouts()
@Deprecated public Integer getMaxReceiveTimeouts()
@Deprecated public void setMaxReceiveTimeouts(Integer maxReceiveTimeouts)
maxReceiveTimeouts
- maximum number of receiveTimeoutspublic boolean hasIdleTimeout()
public Integer getIdleTimeout()
public void setIdleTimeout(Integer idleTimeout)
idleTimeout
- timeout in millisecondspublic int getReadTimeout()
public void setReadTimeout(int readTimeout)
readTimeout
- timeout in millisecondspublic boolean hasKeepAlive()
public Boolean getKeepAlive()
public void setKeepAlive(Boolean keepAlive)
keepAlive
- enable SO_KEEPALIVE when true; disable SO_KEEPALIVE when false; use system default when nullpublic boolean hasTcpNoDelay()
public Boolean getTcpNoDelay()
public void setTcpNoDelay(Boolean tcpNoDelay)
tcpNoDelay
- enable TCP_NODELAY when true; disable TCP_NODELAY when false; use system default when nullpublic boolean hasReuseAddress()
public Boolean getReuseAddress()
public void setReuseAddress(Boolean reuseAddress)
reuseAddress
- enable SO_REUSEADDR when true; disable SO_REUSEADDR when false; use system default when nullpublic boolean hasReceiveBufferSize()
public int getReceiveBufferSize()
public void setReceiveBufferSize(Integer receiveBufferSize)
receiveBufferSize
- the SO_RCVBUF option value. If null, the system default is usedpublic boolean hasSendBufferSize()
public 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 boolean getHl7Headers()
public void setHl7Headers(boolean hl7Headers)
hl7Headers
- enabled if true, otherwise disabledpublic boolean isRequireEndOfData()
public void setRequireEndOfData(boolean requireEndOfData)
requireEndOfData
- the trailing END_OF_DATA byte is required if true; optional otherwisepublic boolean isStringPayload()
public void setStringPayload(boolean stringPayload)
stringPayload
- enabled if true, otherwise disabledpublic boolean isValidatePayload()
public void setValidatePayload(boolean validatePayload)
validatePayload
- enabled if true, otherwise disabledpublic boolean isBufferWrites()
@Deprecated public void setBufferWrites(boolean bufferWrites)
bufferWrites
- enabled if true, otherwise disabledApache Camel