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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAttachment(@NonNull String filename, @NonNull String contentType, @org.jspecify.annotations.NonNull byte[] content, @Nullable String id, @Nullable String disposition) -
Method Summary
-
Constructor Details
-
Attachment
public Attachment(@NonNull String filename, @NonNull String contentType, @org.jspecify.annotations.NonNull byte[] content, @Nullable String id, @Nullable String disposition) - Parameters:
filename- filename to show up in emailcontentType- file content typecontent- file contentid- content identifierdisposition- content disposition- Since:
- 2.1.0
-
-
Method Details
-
builder
- Returns:
- Attachment's builder
-
getFilename
- Returns:
- filename to show up in email
-
getContentType
- Returns:
- file content type
-
getContent
public @org.jspecify.annotations.NonNull byte[] getContent()- Returns:
- file content type
-
getId
- Returns:
- Content Id
-
getDisposition
- Returns:
- Content Disposition
- Since:
- 2.1.0
-