Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## be.ehealth.businessconnector.genericasync.builders
Interface ResponseObjectBuilder

All Superinterfaces:
  ConfigurableImplementation

All Known Implementing Classes:
  ResponseObjectBuilderImpl

    public interface ResponseObjectBuilder

extends ConfigurableImplementation

Used to build a response object Default impl : `ResponseObjectBuilderImpl` Factory : `BuilderFactory`

Method Summary
`Map<Object,SignatureVerificationResult>` | `handleGetResponse(GetResponse getResponse)` Checks and validates the response of a get request.
`boolean` | `handlePostResponse(PostResponse postResponse)` Check the response of a post request.

Methods inherited from interface be.ehealth.technicalconnector.utils.ConfigurableImplementation
`initialize`

Method Detail

### handlePostResponse

    boolean handlePostResponse(PostResponse postResponse)
                               throws GenAsyncBusinessConnectorException

  Check the response of a post request. it will check if there are no errors , and return a boolean true if there were warnings in the response.

  Parameters:
    `postResponse` - the WS response
  Returns:
    true if error contains warnings, false if it doesn't
  Throws:
    `GenAsyncBusinessConnectorException`

### handleGetResponse

    Map<Object,SignatureVerificationResult> handleGetResponse(GetResponse getResponse)
                                                              throws GenAsyncBusinessConnectorException

  Checks and validates the response of a get request. if there are Xades signatures , they will be validated. ( mycarenet already validates that the messages containt the xades signature if they are needed , no additional check on presence of these signatures is needed) the hashvalue check should be done seperately ( with BlobBuilder code ) while retrieving the contents of the messages.

  Parameters:
    `getResponse` - the WS Response
  Returns:
    when no validation failures occure the return is a Map with the responses ( TackResponse or MessageResponse ) as key and the `SignatureVerificationResult` as value
  Throws:
    `GenAsyncBusinessConnectorException` - with the results if there is a signature verification failure

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Connector Packaging PERSPRACTICALNURSE 3.15.1 API
Copyright © {inceptionYear}-2018 eHealth. All Rights Reserved.