Class ChangeCharEncodingService

  • All Implemented Interfaces:
    AdaptrisComponent, ComponentLifecycle, ComponentLifecycleExtension, MessageEventGenerator, Service, StateManagedComponent

    @ComponentProfile(summary="Change the character encoding of a message",
                      tag="service,encoding")
    public class ChangeCharEncodingService
    extends ServiceImp
    Changes the character encoding associated with a message.

    this service does nothing with the data, but simply changes the character encoding associated with the message using InterlokMessage.setContentEncoding(String). If this service is used, and there is no configured character encoding then the character encoding associated with the message is set to null (which forces the platform default encoding).

    In the adapter configuration file this class is aliased as change-char-encoding-service which is the preferred alternative to the fully qualified classname when building your configuration.