Package org.apache.axiom.util.activation

# Class DataHandlerContentTypeProvider

java.lang.Object
org.apache.axiom.util.activation.DataHandlerContentTypeProvider

All Implemented Interfaces:
  `ContentTypeProvider`

public final class DataHandlerContentTypeProvider extends Object implements ContentTypeProvider
`ContentTypeProvider` implementation that recognizes blobs created from `DataHandler` objects and returns the content type specified by `DataHandler.getContentType()`.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final DataHandlerContentTypeProvider`
  `INSTANCE`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ContentType`
  `getContentType(Blob blob)`
  Determine the content type to use for a MIME part.

  ### Methods inherited from class java.lang.Object

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

- ## Field Details

  - ### INSTANCE

    public static final DataHandlerContentTypeProvider INSTANCE

- ## Method Details

  - ### getContentType

    public ContentType getContentType(Blob blob)
    Description copied from interface: `ContentTypeProvider`
    Determine the content type to use for a MIME part.
    Specified by:
      `getContentType` in interface `ContentTypeProvider`
    Parameters:
      `blob` - the content of the MIME part
    Returns:
      the content type, or `null` if there is no specific content type