Package org.apache.axiom.om.format.xop
Interface ContentTypeProvider
- All Known Implementing Classes:
DataHandlerContentTypeProvider
public interface ContentTypeProvider
Determines the content type for non-root MIME parts in an XOP package. Note that in an
XOP package, the
Content-Type
header is only required for the root part, and the
content type of non-root MIME parts is not part of the infoset. This API purely
exists to customize the serialization of an XML infoset into an XOP package.-
Method Summary
Modifier and TypeMethodDescriptiongetContentType
(Blob blob) Determine the content type to use for a MIME part.
-
Method Details
-
getContentType
Determine the content type to use for a MIME part.- Parameters:
blob
- the content of the MIME part- Returns:
- the content type, or
null
if there is no specific content type
-