Constructor and Description |
---|
MinaConfiguration() |
Modifier and Type | Method and Description |
---|---|
MinaConfiguration |
copy()
Returns a copy of this configuration
|
String |
getCharsetName() |
org.apache.mina.filter.codec.ProtocolCodecFactory |
getCodec() |
int |
getDecoderMaxLineLength() |
int |
getEncoderMaxLineLength() |
String |
getEncoding() |
List<org.apache.mina.core.filterchain.IoFilter> |
getFilters() |
String |
getHost() |
int |
getMaximumPoolSize() |
org.apache.camel.LoggingLevel |
getNoReplyLogLevel() |
int |
getPort() |
String |
getProtocol() |
org.apache.camel.support.jsse.SSLContextParameters |
getSslContextParameters() |
MinaTextLineDelimiter |
getTextlineDelimiter() |
long |
getTimeout() |
String |
getUriString() |
long |
getWriteTimeout() |
boolean |
isAllowDefaultCodec() |
boolean |
isAutoStartTls() |
boolean |
isCachedAddress() |
boolean |
isClientMode() |
boolean |
isDatagramProtocol() |
boolean |
isDisconnect() |
boolean |
isDisconnectOnNoReply() |
boolean |
isLazySessionCreation() |
boolean |
isMinaLogger() |
boolean |
isOrderedThreadPoolExecutor() |
boolean |
isSync() |
boolean |
isTextline() |
boolean |
isTransferExchange() |
void |
setAllowDefaultCodec(boolean allowDefaultCodec)
The mina component installs a default codec if both, codec is null and textline is false.
|
void |
setAutoStartTls(boolean autoStartTls)
Whether to auto start SSL handshake.
|
void |
setCachedAddress(boolean shouldCacheAddress)
Whether to create the InetAddress once and reuse.
|
void |
setClientMode(boolean clientMode)
If the clientMode is true, mina consumer will connect the address as a TCP client.
|
void |
setCodec(org.apache.mina.filter.codec.ProtocolCodecFactory codec)
To use a custom minda codec implementation.
|
void |
setDecoderMaxLineLength(int decoderMaxLineLength)
To set the textline protocol decoder max line length.
|
void |
setDisconnect(boolean disconnect)
Whether or not to disconnect(close) from Mina session right after use.
|
void |
setDisconnectOnNoReply(boolean disconnectOnNoReply)
If sync is enabled then this option dictates MinaConsumer if it should disconnect where there is no reply to send back.
|
void |
setEncoderMaxLineLength(int encoderMaxLineLength)
To set the textline protocol encoder max line length.
|
void |
setEncoding(String encoding)
You can configure the encoding (a charset name) to use for the TCP textline codec and the UDP protocol.
|
void |
setFilters(List<org.apache.mina.core.filterchain.IoFilter> filters)
You can set a list of Mina IoFilters to use.
|
void |
setHost(String host)
Hostname to use.
|
void |
setLazySessionCreation(boolean lazySessionCreation)
Sessions can be lazily created to avoid exceptions, if the remote server is not up and running when the Camel producer is started.
|
void |
setMaximumPoolSize(int maximumPoolSize)
Number of worker threads in the worker pool for TCP and UDP
|
void |
setMinaLogger(boolean minaLogger)
You can enable the Apache MINA logging filter.
|
void |
setNoReplyLogLevel(org.apache.camel.LoggingLevel noReplyLogLevel)
If sync is enabled this option dictates MinaConsumer which logging level to use when logging a there is no reply to send back.
|
void |
setOrderedThreadPoolExecutor(boolean orderedThreadPoolExecutor)
Whether to use ordered thread pool, to ensure events are processed orderly on the same channel.
|
void |
setPort(int port)
Port number
|
void |
setProtocol(String protocol)
Protocol to use
|
void |
setSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
To configure SSL security.
|
void |
setSync(boolean sync)
Setting to set endpoint as one-way or request-response.
|
void |
setTextline(boolean textline)
Only used for TCP.
|
void |
setTextlineDelimiter(MinaTextLineDelimiter textlineDelimiter)
Only used for TCP and if textline=true.
|
void |
setTimeout(long timeout)
You can configure the timeout that specifies how long to wait for a response from a remote server.
|
void |
setTransferExchange(boolean transferExchange)
Only used for TCP.
|
void |
setWriteTimeout(long writeTimeout)
Maximum amount of time it should take to send data to the MINA session.
|
public MinaConfiguration copy()
public String getCharsetName()
public String getProtocol()
public void setProtocol(String protocol)
public String getHost()
public void setHost(String host)
public int getPort()
public void setPort(int port)
public boolean isSync()
public void setSync(boolean sync)
public boolean isTextline()
public void setTextline(boolean textline)
public MinaTextLineDelimiter getTextlineDelimiter()
public void setTextlineDelimiter(MinaTextLineDelimiter textlineDelimiter)
public org.apache.mina.filter.codec.ProtocolCodecFactory getCodec()
public void setCodec(org.apache.mina.filter.codec.ProtocolCodecFactory codec)
public String getEncoding()
public void setEncoding(String encoding)
public long getWriteTimeout()
public void setWriteTimeout(long writeTimeout)
public long getTimeout()
public void setTimeout(long timeout)
public boolean isLazySessionCreation()
public void setLazySessionCreation(boolean lazySessionCreation)
public boolean isTransferExchange()
public void setTransferExchange(boolean transferExchange)
public void setEncoderMaxLineLength(int encoderMaxLineLength)
public int getEncoderMaxLineLength()
public void setDecoderMaxLineLength(int decoderMaxLineLength)
public int getDecoderMaxLineLength()
public boolean isMinaLogger()
public void setMinaLogger(boolean minaLogger)
public List<org.apache.mina.core.filterchain.IoFilter> getFilters()
public void setFilters(List<org.apache.mina.core.filterchain.IoFilter> filters)
public boolean isDatagramProtocol()
public void setAllowDefaultCodec(boolean allowDefaultCodec)
public boolean isAllowDefaultCodec()
public boolean isDisconnect()
public void setDisconnect(boolean disconnect)
public boolean isDisconnectOnNoReply()
public void setDisconnectOnNoReply(boolean disconnectOnNoReply)
public org.apache.camel.LoggingLevel getNoReplyLogLevel()
public void setNoReplyLogLevel(org.apache.camel.LoggingLevel noReplyLogLevel)
public org.apache.camel.support.jsse.SSLContextParameters getSslContextParameters()
public void setSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
public boolean isAutoStartTls()
public void setAutoStartTls(boolean autoStartTls)
public int getMaximumPoolSize()
public void setMaximumPoolSize(int maximumPoolSize)
public boolean isOrderedThreadPoolExecutor()
public void setOrderedThreadPoolExecutor(boolean orderedThreadPoolExecutor)
public void setCachedAddress(boolean shouldCacheAddress)
public boolean isCachedAddress()
public void setClientMode(boolean clientMode)
public boolean isClientMode()
public String getUriString()
Apache Camel