Package org.apache.axiom.util.activation
Class DataHandlerContentTypeProvider
java.lang.Object
org.apache.axiom.util.activation.DataHandlerContentTypeProvider
- All Implemented Interfaces:
ContentTypeProvider
ContentTypeProvider implementation that recognizes blobs created from DataHandler
objects and returns the content type specified by DataHandler.getContentType().-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetContentType(Blob blob) Determine the content type to use for a MIME part.
-
Field Details
-
INSTANCE
-
-
Method Details
-
getContentType
Description copied from interface:ContentTypeProviderDetermine the content type to use for a MIME part.- Specified by:
getContentTypein interfaceContentTypeProvider- Parameters:
blob- the content of the MIME part- Returns:
- the content type, or
nullif there is no specific content type
-