Class SyslogReceivingChannelAdapterSupport

All Implemented Interfaces:
Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, SmartInitializingSingleton, ApplicationContextAware, Lifecycle, Phased, SmartLifecycle, ExpressionCapable, MessageProducer, IntegrationPattern, NamedComponent, IntegrationInboundManagement, IntegrationManagement, ManageableLifecycle, ManageableSmartLifecycle, TrackableComponent
Direct Known Subclasses:
TcpSyslogReceivingChannelAdapter, UdpSyslogReceivingChannelAdapter

public abstract class SyslogReceivingChannelAdapterSupport extends MessageProducerSupport
Base support class for inbound channel adapters. The default port is 514.
Gary Russell
  • Field Details

  • Constructor Details

    • SyslogReceivingChannelAdapterSupport

      public SyslogReceivingChannelAdapterSupport()
  • Method Details

    • getPort

      protected int getPort()
      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.
      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.
      converter - The converter.
    • onInit

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

      protected void convertAndSend(Message<?> message)