Class UrlEncodeMetadataService

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

@ComponentProfile(summary="URL Encode some metadata", tag="service,metadata") public class UrlEncodeMetadataService extends ReformatMetadata

In the adapter configuration file this class is aliased as url-encode-metadata-service which is the preferred alternative to the fully qualified classname when building your configuration.

  • Constructor Details

    • UrlEncodeMetadataService

      public UrlEncodeMetadataService()
    • UrlEncodeMetadataService

      public UrlEncodeMetadataService(String metadataRegexp)
  • Method Details

    • reformat

      public String reformat(String s, String msgCharset) throws Exception
      Description copied from interface: MetadataReformatter
      Reformat a metadata value
      Parameters:
      s - the string to reformat
      msgCharset - the charset of the message
      Returns:
      the replacment string.
      Throws:
      Exception