Package org.shredzone.acme4j.smime.email
Schnittstelle ResponseBodyGenerator
- Funktionsschnittstelle:
- Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.
A generator for the response body to be set to the
Message
.
This generator can be used to design the body of the outgoing response email. However, note that the response email is evaluated by a machine and usually not read by humans, so the design should be kept simple, and must be conformous to RFC-8823.
The responseBody
must be a part of the response email body, otherwise the
validation will fail.
A minimal implementation is:
response.setContent(responseBody, RESPONSE_BODY_TYPE);
- Seit:
- 2.12
- Siehe auch:
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final String
The content-type of the response body: "text/plain" -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
setContent
(jakarta.mail.Message response, String responseBody) Sets the content of theMessage
.
-
Felddetails
-
RESPONSE_BODY_TYPE
The content-type of the response body: "text/plain"- Siehe auch:
-
-
Methodendetails
-
setContent
void setContent(jakarta.mail.Message response, String responseBody) throws jakarta.mail.MessagingException Sets the content of theMessage
.- Parameter:
response
-Message
to set the body content.responseBody
- The response body that must be part of the email response, and must use "text/plain" content type.- Löst aus:
jakarta.mail.MessagingException
-