Package org.apache.axiom.om.format.xop
Class CombinedContentTransferEncodingPolicy
java.lang.Object
org.apache.axiom.om.format.xop.CombinedContentTransferEncodingPolicy
- All Implemented Interfaces:
ContentTransferEncodingPolicy
public final class CombinedContentTransferEncodingPolicy
extends Object
implements ContentTransferEncodingPolicy
ContentTransferEncodingPolicy implementation that combines multiple other
ContentTransferEncodingPolicy instances into a single policy. It returns the
first non-null ContentTransferEncoding.-
Field Summary
Fields inherited from interface org.apache.axiom.om.format.xop.ContentTransferEncodingPolicy
USE_BASE64_FOR_NON_TEXTUAL_PARTS -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetContentTransferEncoding(Blob blob, ContentType contentType) Determine the content transfer encoding to use for a MIME part.
-
Constructor Details
-
CombinedContentTransferEncodingPolicy
-
-
Method Details
-
getContentTransferEncoding
Description copied from interface:ContentTransferEncodingPolicyDetermine the content transfer encoding to use for a MIME part.- Specified by:
getContentTransferEncodingin interfaceContentTransferEncodingPolicy- Parameters:
blob- the content of the MIME part; may benullcontentType- the content type of the MIME part (as determined byContentTypeProvider; may benull- Returns:
- the content transfer encoding, or
nullif no content transfer encoding is specified (in which case anotherContentTransferEncodingPolicymay be consulted or a default is used)
-