be.ehealth.businessconnector.mycarenet.attestv3.service.impl

## Class AttestServiceImpl

- java.lang.Object
- - be.ehealth.businessconnector.mycarenet.attestv3.service.impl.AttestServiceImpl

- All Implemented Interfaces:
    AttestService, ConfigurationModuleBootstrap.ModuleBootstrapHook

      public class AttestServiceImpl
      extends Object
      implements AttestService, ConfigurationModuleBootstrap.ModuleBootstrapHook

  Implementation for the `AttestService` interface.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AttestServiceImpl()` default constructor , needed for ModuleBootstrapHook.
    `AttestServiceImpl(SessionValidator sessionValidator)` Creates a new `AttestServiceImpl`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `bootstrap()`
    `CancelAttestationResponse` | `cancelAttestion(SAMLToken token, SendRequestType request)` Cancel the consultation request to the WS and retrieves the response.
    `SendAttestationResponse` | `sendAttestion(SAMLToken token, SendRequestType request)` Sends the consultation request to the WS and retrieves the response.

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

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

- - ### Constructor Detail

    - #### AttestServiceImpl

          public AttestServiceImpl(SessionValidator sessionValidator)

      Creates a new `AttestServiceImpl`
      Parameters:
        `sessionValidator` - the SessionValidator object

    - #### AttestServiceImpl

          public AttestServiceImpl()

      default constructor , needed for ModuleBootstrapHook.

  - ### Method Detail

    - #### sendAttestion

          public final SendAttestationResponse sendAttestion(SAMLToken token,
                                                             SendRequestType request)
                                                      throws TechnicalConnectorException

      Description copied from interface: `AttestService`
      Sends the consultation request to the WS and retrieves the response. It only needs the SamlToken, no session needs to be active.
      Specified by:
        `sendAttestion` in interface `AttestService`
      Parameters:
        `token` - the valid SAML token
        `request` - the request to send
      Returns:
        CancelAttestationResponse
      Throws:
        `TechnicalConnectorException`

    - #### cancelAttestion

          public CancelAttestationResponse cancelAttestion(SAMLToken token,
                                                           SendRequestType request)
                                                    throws TechnicalConnectorException

      Description copied from interface: `AttestService`
      Cancel the consultation request to the WS and retrieves the response. It only needs the SamlToken, no session needs to be active.
      Specified by:
        `cancelAttestion` in interface `AttestService`
      Parameters:
        `token` - the valid SAML token
        `request` - the request to send
      Returns:
        CancelAttestationResponse
      Throws:
        `TechnicalConnectorException`

    - #### bootstrap

          public void bootstrap()

      Specified by:
        `bootstrap` in interface `ConfigurationModuleBootstrap.ModuleBootstrapHook`

Connector Packaging PHYSIOTHERAPIST 4.1.2 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.