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:ContentTransferEncodingPolicy
Determine the content transfer encoding to use for a MIME part.- Specified by:
getContentTransferEncoding
in interfaceContentTransferEncodingPolicy
- Parameters:
blob
- the content of the MIME part; may benull
contentType
- the content type of the MIME part (as determined byContentTypeProvider
; may benull
- Returns:
- the content transfer encoding, or
null
if no content transfer encoding is specified (in which case anotherContentTransferEncodingPolicy
may be consulted or a default is used)
-