Class DomibusConnectorClientSubmissionRestAPIImpl
- java.lang.Object
-
- eu.domibus.connector.client.controller.rest.impl.DomibusConnectorClientSubmissionRestAPIImpl
-
- All Implemented Interfaces:
DomibusConnectorClientSubmissionRestAPI
@RestController @RequestMapping("/submissionrestservice") public class DomibusConnectorClientSubmissionRestAPIImpl extends Object implements DomibusConnectorClientSubmissionRestAPI
-
-
Field Summary
-
Fields inherited from interface eu.domibus.connector.client.rest.DomibusConnectorClientSubmissionRestAPI
SUBMISSIONRESTSERVICE_PATH, SUBMIT_NEW_MESSAGE_FROM_BACKEND_TO_CONNECTOR_CLIENT, TRIGGER_CONFIRMATION_AT_CONNECTOR_CLIENT
-
-
Constructor Summary
Constructors Constructor Description DomibusConnectorClientSubmissionRestAPIImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
submitNewMessageFromBackendToConnectorClient(DomibusConnectorClientMessage clientMessage)
With this method a new message may be submitted to the domibusConnectorClient by a backend application via REST service.Boolean
triggerConfirmationAtConnectorClient(String refToMessageId, String confirmationType)
This method allows a backend application of the domibusConnectorClient to trigger a confirmation for a message.
-
-
-
Method Detail
-
submitNewMessageFromBackendToConnectorClient
public Boolean submitNewMessageFromBackendToConnectorClient(DomibusConnectorClientMessage clientMessage) throws MessageSubmissionException, StorageException, ParameterException
Description copied from interface:DomibusConnectorClientSubmissionRestAPI
With this method a new message may be submitted to the domibusConnectorClient by a backend application via REST service. The message is then processed by the domibusConnectorClient and submitted to the domibusConnector.- Specified by:
submitNewMessageFromBackendToConnectorClient
in interfaceDomibusConnectorClientSubmissionRestAPI
- Parameters:
clientMessage
- The domibusConnectorClient message to be processed and submitted to the domibusConnector. This message object must already be built completely with all message files attached, as the domibusConnectorClient presumes that the message submitted is already prepared.- Returns:
- success
- Throws:
MessageSubmissionException
StorageException
ParameterException
-
triggerConfirmationAtConnectorClient
public Boolean triggerConfirmationAtConnectorClient(String refToMessageId, String confirmationType) throws MessageSubmissionException, ParameterException, MessageNotFoundException
Description copied from interface:DomibusConnectorClientSubmissionRestAPI
This method allows a backend application of the domibusConnectorClient to trigger a confirmation for a message. The confirmation trigger will be forwarded to the domibusConnector which then generates the confirmation and submits it to the original sender of the message. The generated confirmation also is sent back to the domibusConnectorClient and stored there.- Specified by:
triggerConfirmationAtConnectorClient
in interfaceDomibusConnectorClientSubmissionRestAPI
- Returns:
- success
- Throws:
MessageSubmissionException
ParameterException
MessageNotFoundException
-
-