Package com.helger.phase4.attachment
Class AS4OutgoingAttachment.Builder
java.lang.Object
com.helger.phase4.attachment.AS4OutgoingAttachment.Builder
- All Implemented Interfaces:
com.helger.commons.builder.IBuilder<AS4OutgoingAttachment>
- Enclosing class:
- AS4OutgoingAttachment
public static class AS4OutgoingAttachment.Builder
extends Object
implements com.helger.commons.builder.IBuilder<AS4OutgoingAttachment>
Builder class for class
AS4OutgoingAttachment. At least "data" and
"mimeType" must be set.- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Define the charset of the outgoing attachment.protected voidShortcut forcompression (EAS4CompressionMode.GZIP)data(byte[] a) data(com.helger.commons.io.ByteArrayWrapper a) mimeType(com.helger.commons.mime.IMimeType a) Shortcut formimeType (CMimeType.APPLICATION_XML)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
data
-
data
@Nonnull public AS4OutgoingAttachment.Builder data(@Nullable com.helger.commons.io.ByteArrayWrapper a) -
data
-
reandomContentID
-
contentID
-
filename
-
mimeTypeXML
Shortcut formimeType (CMimeType.APPLICATION_XML)- Returns:
- this for chaining
-
mimeType
@Nonnull public AS4OutgoingAttachment.Builder mimeType(@Nullable com.helger.commons.mime.IMimeType a) -
compressionGZIP
Shortcut forcompression (EAS4CompressionMode.GZIP)- Returns:
- this for chaining
-
compression
-
charset
Define the charset of the outgoing attachment.- Parameters:
a- The Charset to use. May benull.- Returns:
- this for chaining
- Since:
- 0.14.0
-
checkConsistency
-
build
- Specified by:
buildin interfacecom.helger.commons.builder.IBuilder<AS4OutgoingAttachment>
-