Package io.micronaut.email
Class Attachment
java.lang.Object
io.micronaut.email.Attachment
Email's Attachment.
- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionAttachment
(@NonNull String filename, @NonNull String contentType, @io.micronaut.core.annotation.NonNull byte[] content, @Nullable String id) Deprecated, for removal: This API element is subject to removal in a future version.Attachment
(@NonNull String filename, @NonNull String contentType, @io.micronaut.core.annotation.NonNull byte[] content, @Nullable String id, @Nullable String disposition) -
Method Summary
-
Constructor Details
-
Attachment
@Creator public Attachment(@NonNull @NonNull String filename, @NonNull @NonNull String contentType, @NonNull @io.micronaut.core.annotation.NonNull byte[] content, @Nullable @Nullable String id, @Nullable @Nullable String disposition) - Parameters:
filename
- filename to show up in emailcontent
- file contentcontentType
- file content typeid
- content identifierdisposition
- content disposition- Since:
- 2.1.0
-
Attachment
@Deprecated(since="2.1.0", forRemoval=true) public Attachment(@NonNull @NonNull String filename, @NonNull @NonNull String contentType, @NonNull @io.micronaut.core.annotation.NonNull byte[] content, @Nullable @Nullable String id) Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
filename
- filename to show up in emailcontent
- file contentcontentType
- file content typeid
- content identifier
-
-
Method Details
-
builder
- Returns:
- Attachment's builder
-
getFilename
- Returns:
- filename to show up in email
-
getContentType
- Returns:
- file content type
-
getContent
@NonNull public @io.micronaut.core.annotation.NonNull byte[] getContent()- Returns:
- file content type
-
getId
- Returns:
- Content Id
-
getDisposition
- Returns:
- Content Disposition
- Since:
- 2.1.0
-
Attachment(String, String, byte[], String, String)