Class IncaMailRestClient
java.lang.Object
ch.tocco.nice2.optional.incamail.impl.rest.IncaMailRestClient
Client for the IncaMail "Send Secure Message" REST API of the Swiss Post. Every instance is bound to the
credentials of a single
Inca_mail_address.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.ws.rs.core.ResponsepostFile(jakarta.ws.rs.client.Client client, org.glassfish.jersey.media.multipart.FormDataMultiPart multiPart) protected jakarta.ws.rs.core.ResponsepostMessage(jakarta.ws.rs.client.Client client, IncaMailRestClient.Message message) Uploads a file which can then be referenced by the returned UUID asIncaMailRestClient.LargeFileAttachmentin a subsequentsendMessage(Message).sendMessage(IncaMailRestClient.Message message) A successful response only means that IncaMail accepted the message, not that it has been delivered.
-
Constructor Details
-
IncaMailRestClient
-
-
Method Details
-
sendMessage
A successful response only means that IncaMail accepted the message, not that it has been delivered. -
prepareFile
Uploads a file which can then be referenced by the returned UUID asIncaMailRestClient.LargeFileAttachmentin a subsequentsendMessage(Message). -
postMessage
@VisibleForTesting protected jakarta.ws.rs.core.Response postMessage(jakarta.ws.rs.client.Client client, IncaMailRestClient.Message message) -
postFile
@VisibleForTesting protected jakarta.ws.rs.core.Response postFile(jakarta.ws.rs.client.Client client, org.glassfish.jersey.media.multipart.FormDataMultiPart multiPart)
-