be.ehealth.businessconnector.chapterIV.builders

## Class BuilderFactory

- java.lang.Object
- - be.ehealth.businessconnector.chapterIV.builders.BuilderFactory

-     public final class BuilderFactory
      extends Object

  A factory for creating Builder objects.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BuilderFactory(Crypto holderOfKeyCrypto, Crypto encryptionCrypto, KmehrValidator validator, Chapter4XmlValidator chapter4XmlValidator)` Deprecated. use it without the crypto parameters
    `BuilderFactory(KmehrValidator validator, Chapter4XmlValidator chapter4XmlValidator)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `ResponseBuilder` | `createResponseBuilder()` Deprecated.
    `AdmissionBuilder` | `getAdmissionBuilder()`
    `static BuilderFactory` | `getBuilderFactoryForSession()` creates a BuilderFactory with default validators and cryptos created from the sessionItem.
    `static BuilderFactory` | `getBuilderFactoryForSession(SessionItem sessionItem)` creates a BuilderFactory with default validators and cryptos created from the sessionItem.
    `ConsultationBuilder` | `getConsultationBuilder()`
    `ResponseBuilder` | `getResponseBuilder()`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BuilderFactory

          @Deprecated
          public BuilderFactory(Crypto holderOfKeyCrypto,
                                             Crypto encryptionCrypto,
                                             KmehrValidator validator,
                                             Chapter4XmlValidator chapter4XmlValidator)

      Deprecated. use it without the crypto parameters
      Instantiates a new builder factory.
      Parameters:
        `holderOfKeyCrypto` -
        `encryptionCrypto` -
        `validator` -
        `chapter4XmlValidator` -

    - #### BuilderFactory

          public BuilderFactory(KmehrValidator validator,
                                Chapter4XmlValidator chapter4XmlValidator)

  - ### Method Detail

    - #### getBuilderFactoryForSession

          public static BuilderFactory getBuilderFactoryForSession(SessionItem sessionItem)
                                                            throws TechnicalConnectorException

      creates a BuilderFactory with default validators and cryptos created from the sessionItem.
      Parameters:
        `sessionItem` - SessionItem : should have its Hok and encryption credentials configured
      Returns:
        `BuilderFactory`
      Throws:
        `TechnicalConnectorException` - if the crypto's could not be created

    - #### getBuilderFactoryForSession

          public static BuilderFactory getBuilderFactoryForSession()
                                                            throws TechnicalConnectorException

      creates a BuilderFactory with default validators and cryptos created from the sessionItem.
      Returns:
        `BuilderFactory`
      Throws:
        `TechnicalConnectorException` - if the crypto's could not be created

    - #### getConsultationBuilder

          public ConsultationBuilder getConsultationBuilder()
                                                     throws TechnicalConnectorException

      Returns:
        ConsultationBuilder
      Throws:
        `TechnicalConnectorException`

    - #### getAdmissionBuilder

          public AdmissionBuilder getAdmissionBuilder()
                                               throws TechnicalConnectorException

      Returns:
        ConsultationBuilder
      Throws:
        `TechnicalConnectorException`

    - #### getResponseBuilder

          public ResponseBuilder getResponseBuilder()
                                             throws TechnicalConnectorException

      Returns:
        ResponseBuilder
      Throws:
        `TechnicalConnectorException`

    - #### createResponseBuilder

          @Deprecated
          public ResponseBuilder createResponseBuilder()
                                                             throws TechnicalConnectorException

      Deprecated.
      Throws:
        `TechnicalConnectorException`

Connector Packaging PERSPHYSICIAN 4.8.5 API
Copyright © {inceptionYear}-2026 eHealth. All Rights Reserved.