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.dmg.session.impl
Class DmgServiceImpl

    java.lang.Object
      be.ehealth.businessconnector.dmg.session.impl.DmgServiceImpl

All Implemented Interfaces:
  DmgService

    public class DmgServiceImpl

extends Object
implements DmgService

A simplified interface to access the DMG service Implements : `DmgService`

Constructor Summary
`DmgServiceImpl(SessionValidator sessionValidator, EhealthReplyValidator replyValidator)` Instantiates a new Dmg service impl.

Method Summary
`ConfirmResponse` | `confirmRequest(Confirm request, WsAddressingHeader header)` Sends a Confirm request after a successful Get It only needs the SAMLtoken, no session needs to be active
`ConsultGlobalMedicalFileResponse` | `consultGlobalMedicalFile(ConsultGlobalMedicalFileRequest request)` Sends the consultation request to the WS (needs a Session to be active, token is retrieved from the session)
`GetResponse` | `getRequest(Get request, WsAddressingHeader header)` Returns the `Responses` from the post previously sent.
`NotifyGlobalMedicalFileResponse` | `notifyGlobalMedicalFile(NotifyGlobalMedicalFileRequest request)` Sends the notification request to the WS (needs a Session to be active, token is retrieved from the session)
`PostResponse` | `postRequest(Post request, WsAddressingHeader header)` Returns the `TAck` of the request of an operation.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DmgServiceImpl

    public DmgServiceImpl(SessionValidator sessionValidator,
                          EhealthReplyValidator replyValidator)
                   throws TechnicalConnectorException

  Instantiates a new Dmg service impl.

  Parameters:
    `sessionValidator` - the sessionValidator
    `replyValidator` - the replyValidator
  Throws:
    `TechnicalConnectorException`

Method Detail

### consultGlobalMedicalFile

    public ConsultGlobalMedicalFileResponse consultGlobalMedicalFile(ConsultGlobalMedicalFileRequest request)
                                                              throws DmgBusinessConnectorException,
                                                                     TechnicalConnectorException,
                                                                     SessionManagementException

  Description copied from interface: `DmgService`
  Sends the consultation request to the WS (needs a Session to be active, token is retrieved from the session)

  Specified by:
    `consultGlobalMedicalFile` in interface `DmgService`
  Parameters:
    `request` - the consultation request
  Returns:
    the WS response
  Throws:
    `DmgBusinessConnectorException`
    `TechnicalConnectorException`
    `SessionManagementException`
  See Also:
    `be.ehealth.businessconnector.dmg.session.DmgService#consultGlobalMedicalFile(be.fgov.ehealth.globalmedicalfile.protocol.v1.SendRequestType)`

### notifyGlobalMedicalFile

    public NotifyGlobalMedicalFileResponse notifyGlobalMedicalFile(NotifyGlobalMedicalFileRequest request)
                                                            throws DmgBusinessConnectorException,
                                                                   TechnicalConnectorException,
                                                                   SessionManagementException

  Description copied from interface: `DmgService`
  Sends the notification request to the WS (needs a Session to be active, token is retrieved from the session)

  Specified by:
    `notifyGlobalMedicalFile` in interface `DmgService`
  Parameters:
    `request` - the notification request
  Returns:
    the WS response
  Throws:
    `DmgBusinessConnectorException`
    `TechnicalConnectorException`
    `SessionManagementException`
  See Also:
    `be.ehealth.businessconnector.dmg.session.DmgService#notifyGlobalMedicalFile(be.fgov.ehealth.globalmedicalfile.protocol.v1.SendRequestType)`

### confirmRequest

    public ConfirmResponse confirmRequest(Confirm request,
                                          WsAddressingHeader header)
                                   throws GenAsyncBusinessConnectorException,
                                          TechnicalConnectorException

  Description copied from interface: `DmgService`
  Sends a Confirm request after a successful Get It only needs the SAMLtoken, no session needs to be active

  Specified by:
    `confirmRequest` in interface `DmgService`
  Parameters:
    `request` - the request
  Returns:
    The response
  Throws:
    `GenAsyncBusinessConnectorException`
    `TechnicalConnectorException`

### getRequest

    public GetResponse getRequest(Get request,
                                  WsAddressingHeader header)
                           throws GenAsyncBusinessConnectorException,
                                  TechnicalConnectorException

  Description copied from interface: `DmgService`
  Returns the `Responses` from the post previously sent. It only needs the SamlToken, no session needs to be active.

  Specified by:
    `getRequest` in interface `DmgService`
  Parameters:
    `request` - the request
  Returns:
    Responses
  Throws:
    `GenAsyncBusinessConnectorException`
    `TechnicalConnectorException`

### postRequest

    public PostResponse postRequest(Post request,
                                    WsAddressingHeader header)
                             throws GenAsyncBusinessConnectorException

  Description copied from interface: `DmgService`
  Returns the `TAck` of the request of an operation. It only needs the SamlToken, no session needs to be active.

  Specified by:
    `postRequest` in interface `DmgService`
  Parameters:
    `request` - the request
  Returns:
    TAck the WS response
  Throws:
    `GenAsyncBusinessConnectorException`

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 generic 3.12.1 API
Copyright © {inceptionYear}-2017 eHealth. All Rights Reserved.