Package com.helger.phase4.attachment
Class AS4OutgoingAttachment
java.lang.Object
com.helger.phase4.attachment.AS4OutgoingAttachment
This represents a single payload for an outgoing message.
- Since:
- 0.9.16
- Author:
- Philip Helger
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAS4OutgoingAttachment(com.helger.commons.io.ByteArrayWrapper aDataBytes, File aDataFile, String sContentID, String sFilename, com.helger.commons.mime.IMimeType aMimeType, EAS4CompressionMode eCompressionMode, Charset aCharset) -
Method Summary
-
Constructor Details
-
AS4OutgoingAttachment
protected AS4OutgoingAttachment(@Nullable com.helger.commons.io.ByteArrayWrapper aDataBytes, @Nullable File aDataFile, @Nullable String sContentID, @Nullable String sFilename, @Nonnull com.helger.commons.mime.IMimeType aMimeType, @Nullable EAS4CompressionMode eCompressionMode, @Nullable Charset aCharset)
-
-
Method Details
-
getDataBytes
- Returns:
- The data to be send as a byte array. May be
nullin which casegetDataFile()has the content. - Since:
- 0.14.0
- See Also:
-
hasDataBytes
public final boolean hasDataBytes()- Returns:
trueif the data is available as a byte array,falseif it is a file.- See Also:
-
getDataFile
- Returns:
- The data to be send as a File. May be
nullin which casegetDataBytes()has the content. - Since:
- 0.14.0
- See Also:
-
hasDataFile
public final boolean hasDataFile()- Returns:
trueif the data is available as a File,falseif it is a byte array.- See Also:
-
getContentID
- Returns:
- The Content-ID to be used. May be
null.
-
getFilename
- Returns:
- The filename to be used. May be
null.
-
getMimeType
- Returns:
- The MIME type to be used. May not be
null.
-
getCompressionMode
- Returns:
- The compression mode to be used. May be
null.
-
getCharset
- Returns:
- The character set to use. May be
null. - Since:
- 0.14.0
-
toString
-
builder
Create a new builder.- Returns:
- Never
null.
-