Spring Integration

org.springframework.integration.syslog.inbound
Class TcpSyslogReceivingChannelAdapter

java.lang.Object
  extended by org.springframework.integration.context.IntegrationObjectSupport
      extended by org.springframework.integration.endpoint.AbstractEndpoint
          extended by org.springframework.integration.endpoint.MessageProducerSupport
              extended by org.springframework.integration.syslog.inbound.SyslogReceivingChannelAdapterSupport
                  extended by org.springframework.integration.syslog.inbound.TcpSyslogReceivingChannelAdapter
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, NamedComponent, MessageProducer, TrackableComponent, TcpListener

public class TcpSyslogReceivingChannelAdapter
extends SyslogReceivingChannelAdapterSupport
implements TcpListener

TCP implementation of a syslog inbound channel adapter.

Since:
3.0
Author:
Gary Russell

Field Summary
 
Fields inherited from class org.springframework.integration.syslog.inbound.SyslogReceivingChannelAdapterSupport
DEFAULT_PORT, logger
 
Constructor Summary
TcpSyslogReceivingChannelAdapter()
           
 
Method Summary
protected  void doStart()
          Takes no action by default.
protected  void doStop()
          Takes no action by default.
protected  void onInit()
          Subclasses may implement this for initialization logic.
 boolean onMessage(Message<?> message)
          Called by a TCPConnection when a new message arrives.
 void setConnectionFactory(AbstractServerConnectionFactory connectionFactory)
           
 
Methods inherited from class org.springframework.integration.syslog.inbound.SyslogReceivingChannelAdapterSupport
convertAndSend, getPort, setConverter, setPort
 
Methods inherited from class org.springframework.integration.endpoint.MessageProducerSupport
sendMessage, setErrorChannel, setOutputChannel, setSendTimeout, setShouldTrack
 
Methods inherited from class org.springframework.integration.endpoint.AbstractEndpoint
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getComponentType, getConversionService, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.integration.context.NamedComponent
getComponentName, getComponentType
 

Constructor Detail

TcpSyslogReceivingChannelAdapter

public TcpSyslogReceivingChannelAdapter()
Method Detail

setConnectionFactory

public void setConnectionFactory(AbstractServerConnectionFactory connectionFactory)
Parameters:
connectionFactory -

onInit

protected void onInit()
Description copied from class: IntegrationObjectSupport
Subclasses may implement this for initialization logic.

Overrides:
onInit in class MessageProducerSupport

doStart

protected void doStart()
Description copied from class: MessageProducerSupport
Takes no action by default. Subclasses may override this if they need lifecycle-managed behavior.

Overrides:
doStart in class MessageProducerSupport

doStop

protected void doStop()
Description copied from class: MessageProducerSupport
Takes no action by default. Subclasses may override this if they need lifecycle-managed behavior.

Overrides:
doStop in class MessageProducerSupport

onMessage

public boolean onMessage(Message<?> message)
Description copied from interface: TcpListener
Called by a TCPConnection when a new message arrives.

Specified by:
onMessage in interface TcpListener
Parameters:
message - The message.
Returns:
true if the message was intercepted

Spring Integration