public class NettyHttpInboundChannelAdapter
extends org.springframework.integration.endpoint.MessageProducerSupport
Constructor and Description |
---|
NettyHttpInboundChannelAdapter(int port) |
NettyHttpInboundChannelAdapter(int port,
boolean ssl) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
protected void |
onInit() |
void |
setExecutor(java.util.concurrent.Executor executor) |
void |
setMaxContentLength(int maxContentLength)
Set the max content length; default 1Mb.
|
void |
setMessageConverter(org.springframework.messaging.converter.MessageConverter messageConverter)
Set the message converter; defaults to
NettyInboundMessageConverter . |
void |
setSslPropertiesLocation(org.springframework.core.io.Resource sslPropertiesLocation) |
sendMessage, setErrorChannel, setOutputChannel, setSendTimeout, setShouldTrack
doStop, getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
afterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getComponentType, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, toString
public NettyHttpInboundChannelAdapter(int port)
public NettyHttpInboundChannelAdapter(int port, boolean ssl)
public void setExecutor(java.util.concurrent.Executor executor)
executor
- The Executor
to use with the Netty ExecutionHandler
in the pipeline. This allows
any potential blocking operations done by message consumers to be removed from the I/O thread. The default
executor is an OrderedMemoryAwareThreadPoolExecutor
, which is highly recommended because it
guarantees order of execution within a channel.public void setSslPropertiesLocation(org.springframework.core.io.Resource sslPropertiesLocation)
sslPropertiesLocation
- A properties resource containing a resource with key 'keyStore' and
a pass phrase with key 'keyStore.passPhrase'.public void setMessageConverter(org.springframework.messaging.converter.MessageConverter messageConverter)
NettyInboundMessageConverter
.messageConverter
- the converter.public void setMaxContentLength(int maxContentLength)
maxContentLength
- the max content length.protected void onInit()
onInit
in class org.springframework.integration.endpoint.MessageProducerSupport
protected void doStart()
doStart
in class org.springframework.integration.endpoint.MessageProducerSupport
protected void doStop()
doStop
in class org.springframework.integration.endpoint.MessageProducerSupport