be.ehealth.businessconnector.ehbox.v3.builders

## Interface SendMessageBuilder

- All Known Implementing Classes:
    SendMessageBuilderImpl

      public interface SendMessageBuilder

  Builder interface for `SendMessageRequest`. Default impl : `SendMessageBuilderImpl` Factory : `BuilderFactory`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `SendMessageRequest` | `buildMessage(DocumentMessage<Message> document)` Builds for a document message.

- - ### Method Detail

    - #### buildMessage

          SendMessageRequest buildMessage(DocumentMessage<Message> document)
                                   throws IOException,
                                          EhboxBusinessConnectorException,
                                          TechnicalConnectorException,
                                          org.bouncycastle.cms.CMSException

      Builds for a document message.

      This methods makes the following validation on the passed `DocumentMessage`:

      - The MineType of the body must be text/plain or text/html. A `EhboxBusinessConnectorException` is thrown otherwise
      Parameters:
        `document` - `DocumentMessage` contains all info to be send.
      Returns:
        SendMessageRequest
      Throws:
        `IOException`
        `TechnicalConnectorException`
        `EhboxBusinessConnectorException`
        `org.bouncycastle.cms.CMSException`

Connector Packaging PHYSIOTHERAPIST 4.4.0 API
Copyright © {inceptionYear}-2023 eHealth. All Rights Reserved.