Class ConfiguredContentTypeProvider

  • All Implemented Interfaces:
    ContentTypeProvider

    public class ConfiguredContentTypeProvider
    extends ContentTypeProviderImpl
    Provides a static content type.

    Note that the content type character set will be derived from AdaptrisMessage.getCharEncoding() so configuring a mime type of text/xml when the message has a char encoding of UTF-8 will return text/xml; charset=UTF-8

    In the adapter configuration file this class is aliased as http-configured-content-type-provider which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • ConfiguredContentTypeProvider

        public ConfiguredContentTypeProvider()
      • ConfiguredContentTypeProvider

        public ConfiguredContentTypeProvider​(java.lang.String type)
    • Method Detail

      • getMimeType

        public java.lang.String getMimeType()
      • setMimeType

        public void setMimeType​(java.lang.String type)
        Set the base content type.
        Parameters:
        type - the base content type; defaults to text/plain