Spring Integration

org.springframework.integration.syslog.inbound
Class SyslogReceivingChannelAdapterSupport

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
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
Direct Known Subclasses:
TcpSyslogReceivingChannelAdapter, UdpSyslogReceivingChannelAdapter

public abstract class SyslogReceivingChannelAdapterSupport
extends MessageProducerSupport

Base support class for inbound channel adapters. The default port is 514.

Since:
3.0
Author:
Gary Russell

Field Summary
protected static int DEFAULT_PORT
           
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
SyslogReceivingChannelAdapterSupport()
           
 
Method Summary
protected  void convertAndSend(Message<?> message)
           
protected  int getPort()
           
 void setConverter(MessageConverter converter)
          A MessageConverter to convert the byte array payload of the underlying UDP/TCP message to a Spring Integration message with decoded payload and headers; default is DefaultMessageConverter.
 void setPort(int port)
          Sets the port on which the adapter listens; default is 514; note that the RFC does not specify a well known port for TCP; 514 is the well-known port for UDP.
 
Methods inherited from class org.springframework.integration.endpoint.MessageProducerSupport
doStart, doStop, onInit, 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
 

Field Detail

DEFAULT_PORT

protected static final int DEFAULT_PORT
See Also:
Constant Field Values

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

SyslogReceivingChannelAdapterSupport

public SyslogReceivingChannelAdapterSupport()
Method Detail

getPort

protected int getPort()
Returns:
The port on which this adapter listens.

setPort

public void setPort(int port)
Sets the port on which the adapter listens; default is 514; note that the RFC does not specify a well known port for TCP; 514 is the well-known port for UDP. Many admins also use 514 for TCP; see RFC-6587 for more information about TCP and RFC-3164/5424 for more information about UDP.

Parameters:
port - The port.

setConverter

public void setConverter(MessageConverter converter)
A MessageConverter to convert the byte array payload of the underlying UDP/TCP message to a Spring Integration message with decoded payload and headers; default is DefaultMessageConverter.

Parameters:
converter - The converter.

convertAndSend

protected void convertAndSend(Message<?> message)

Spring Integration