Package 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

  Modifier and Type
  Method
  Description
  `SendMessageRequest`
  `buildMessage(DocumentMessage<Message> document)`
  Builds for a document message.

- ## Method Details

  - ### 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`