Class CharacterStreamWritingMessageHandler

java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.MessageHandlerSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.stream.outbound.CharacterStreamWritingMessageHandler
org.springframework.integration.stream.CharacterStreamWritingMessageHandler
All Implemented Interfaces:
org.reactivestreams.Subscriber<org.springframework.messaging.Message<?>>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered, org.springframework.integration.context.ComponentSourceAware, org.springframework.integration.context.ExpressionCapable, org.springframework.integration.context.Orderable, org.springframework.integration.IntegrationPattern, org.springframework.integration.support.context.NamedComponent, org.springframework.integration.support.management.IntegrationManagement, org.springframework.integration.support.management.TrackableComponent, org.springframework.messaging.MessageHandler, reactor.core.CoreSubscriber<org.springframework.messaging.Message<?>>

@Deprecated(forRemoval=true, since="7.0") public class CharacterStreamWritingMessageHandler extends CharacterStreamWritingMessageHandler
Deprecated, for removal: This API element is subject to removal in a future version.
A MessageHandler that writes characters to a Writer. String, character array, and byte array payloads will be written directly, but for other payload types, the result of the object's IntegrationObjectSupport.toString() method will be written. To append a new-line after each write, set the shouldAppendNewLine flag to 'true'. It is 'false' by default.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.integration.support.management.IntegrationManagement

    org.springframework.integration.support.management.IntegrationManagement.ManagementOverrides
  • Field Summary

    Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport

    EXPRESSION_PARSER, logger

    Fields inherited from interface org.springframework.integration.support.management.IntegrationManagement

    METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Factory method that creates a target for stderr (System.err) with the default charset encoding.
    stderr(@Nullable String charsetName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Factory method that creates a target for stderr (System.err) with the specified charset encoding.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Factory method that creates a target for stdout (System.out) with the default charset encoding.
    stdout(@Nullable String charsetName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Factory method that creates a target for stdout (System.out) with the specified charset encoding.

    Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler

    handleMessage, onComplete, onError, onNext, onSubscribe, setObservationConvention

    Methods inherited from class org.springframework.integration.handler.MessageHandlerSupport

    buildSendTimer, destroy, getIntegrationPatternType, getManagedName, getManagedType, getMetricsCaptor, getObservationRegistry, getOrder, getOverrides, isLoggingEnabled, isObserved, registerMetricsCaptor, registerObservationRegistry, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrack

    Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport

    afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, onInit, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface reactor.core.CoreSubscriber

    currentContext

    Methods inherited from interface org.springframework.integration.support.management.IntegrationManagement

    getThisAs

    Methods inherited from interface org.springframework.integration.support.context.NamedComponent

    getBeanName, getComponentName
  • Constructor Details

    • CharacterStreamWritingMessageHandler

      public CharacterStreamWritingMessageHandler(Writer writer)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CharacterStreamWritingMessageHandler

      public CharacterStreamWritingMessageHandler(Writer writer, int bufferSize)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • stdout

      public static CharacterStreamWritingMessageHandler stdout()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Factory method that creates a target for stdout (System.out) with the default charset encoding.
      Returns:
      A stdout handler with the default charset.
    • stdout

      public static CharacterStreamWritingMessageHandler stdout(@Nullable String charsetName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Factory method that creates a target for stdout (System.out) with the specified charset encoding.
      Parameters:
      charsetName - The charset name.
      Returns:
      A stdout handler.
    • stderr

      public static CharacterStreamWritingMessageHandler stderr()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Factory method that creates a target for stderr (System.err) with the default charset encoding.
      Returns:
      A stderr handler with the default charset.
    • stderr

      public static CharacterStreamWritingMessageHandler stderr(@Nullable String charsetName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Factory method that creates a target for stderr (System.err) with the specified charset encoding.
      Parameters:
      charsetName - The charset name.
      Returns:
      A stderr handler.