org.springframework.integration.syslog.inbound
Class SyslogReceivingChannelAdapterSupport
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.MessageProducerSupport
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
|
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 |
DEFAULT_PORT
protected static final int DEFAULT_PORT
- See Also:
- Constant Field Values
logger
protected final org.apache.commons.logging.Log logger
SyslogReceivingChannelAdapterSupport
public SyslogReceivingChannelAdapterSupport()
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)