Class DomibusConnectorClientBackendImpl
- java.lang.Object
-
- eu.domibus.connector.client.controller.backend.impl.DomibusConnectorClientBackendImpl
-
- All Implemented Interfaces:
DomibusConnectorClientAppBackend
,DomibusConnectorClientBackend
@Component @ConfigurationProperties(prefix="connector-client.controller") @PropertySource("classpath:/connector-client-controller-default.properties") @Validated @Valid public class DomibusConnectorClientBackendImpl extends Object implements DomibusConnectorClientAppBackend
-
-
Constructor Summary
Constructors Constructor Description DomibusConnectorClientBackendImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DomibusConnectorMessagesType
checkClientForNewMessagesToSubmit()
This method asks the backend of the client if new messages are to submit to the connector.void
deliverNewAcknowledgeableConfirmationToClientBackend(DomibusConnectorMessageType message, String messageTransportId)
This method triggers the client's backend to store/put/forward confirmation received.void
deliverNewAcknowledgeableMessageToClientBackend(DomibusConnectorMessageType message, String messageTransportId)
This method triggers the client's backend to store/put/forward messages received.void
deliverNewConfirmationToClientBackend(DomibusConnectorMessageType message)
This method triggers the client's backend to store/put/forward confirmation received.void
deliverNewMessageToClientBackend(DomibusConnectorMessageType message)
This method triggers the client's backend to store/put/forward messages received.DefaultConfirmationAction
getConfirmationDefaultAction()
void
setConfirmationDefaultAction(DefaultConfirmationAction confirmationDefaultAction)
void
submitStoredClientBackendMessage(String storageLocation)
This method triggers the submission of a prepared and stored message.void
triggerConfirmationForMessage(DomibusConnectorMessageType originalMessage, DomibusConnectorConfirmationType confirmationType, String confirmationAction)
This method triggers the connector to generate and send a confirmation.
-
-
-
Method Detail
-
checkClientForNewMessagesToSubmit
public DomibusConnectorMessagesType checkClientForNewMessagesToSubmit() throws DomibusConnectorClientBackendException
Description copied from interface:DomibusConnectorClientBackend
This method asks the backend of the client if new messages are to submit to the connector. Must be implemented if domibusConnectorClientScheduler is used, or if the client implementation is not self aware to recognize new messages at its backend.- Specified by:
checkClientForNewMessagesToSubmit
in interfaceDomibusConnectorClientBackend
- Returns:
- messages object holding a Collection of messages.
- Throws:
DomibusConnectorClientBackendException
-
submitStoredClientBackendMessage
public void submitStoredClientBackendMessage(String storageLocation) throws DomibusConnectorClientBackendException, DomibusConnectorClientStorageException, IllegalArgumentException
Description copied from interface:DomibusConnectorClientAppBackend
This method triggers the submission of a prepared and stored message. The message gets completely loaded out of the storage. Therefore it is important that the message entirely is stored before triggering this method.- Specified by:
submitStoredClientBackendMessage
in interfaceDomibusConnectorClientAppBackend
- Parameters:
storageLocation
- - The path in the storage where the message is placed.- Throws:
DomibusConnectorClientBackendException
DomibusConnectorClientStorageException
IllegalArgumentException
-
deliverNewMessageToClientBackend
public void deliverNewMessageToClientBackend(DomibusConnectorMessageType message) throws DomibusConnectorClientBackendException
Description copied from interface:DomibusConnectorClientBackend
This method triggers the client's backend to store/put/forward messages received. Must be implemented if domibusConnectorClientScheduler is used, or if the client is set up in push/pull mode.- Specified by:
deliverNewMessageToClientBackend
in interfaceDomibusConnectorClientBackend
- Parameters:
message
- - The message object received from the connector.- Throws:
DomibusConnectorClientBackendException
-
deliverNewConfirmationToClientBackend
public void deliverNewConfirmationToClientBackend(DomibusConnectorMessageType message) throws DomibusConnectorClientBackendException
Description copied from interface:DomibusConnectorClientBackend
This method triggers the client's backend to store/put/forward confirmation received. Must be implemented if domibusConnectorClientScheduler is used, or if the client is set up in push/pull mode.- Specified by:
deliverNewConfirmationToClientBackend
in interfaceDomibusConnectorClientBackend
- Parameters:
message
- - The message object containing the confirmation received from the connector.- Throws:
DomibusConnectorClientBackendException
-
triggerConfirmationForMessage
public void triggerConfirmationForMessage(DomibusConnectorMessageType originalMessage, DomibusConnectorConfirmationType confirmationType, String confirmationAction) throws DomibusConnectorClientBackendException
Description copied from interface:DomibusConnectorClientBackend
This method triggers the connector to generate and send a confirmation.- Specified by:
triggerConfirmationForMessage
in interfaceDomibusConnectorClientBackend
- Parameters:
originalMessage
- - The original message the confirmation should be triggered for.confirmationType
- - The type of confirmation that should be triggered.confirmationAction
- - The use-case specific action that is used for transmission of the confirmation- Throws:
DomibusConnectorClientBackendException
-
getConfirmationDefaultAction
public DefaultConfirmationAction getConfirmationDefaultAction()
-
setConfirmationDefaultAction
public void setConfirmationDefaultAction(DefaultConfirmationAction confirmationDefaultAction)
-
deliverNewAcknowledgeableMessageToClientBackend
public void deliverNewAcknowledgeableMessageToClientBackend(DomibusConnectorMessageType message, String messageTransportId) throws DomibusConnectorClientBackendException
Description copied from interface:DomibusConnectorClientBackend
This method triggers the client's backend to store/put/forward messages received. Must be implemented if the message pulling with acknowledgement is used.- Specified by:
deliverNewAcknowledgeableMessageToClientBackend
in interfaceDomibusConnectorClientBackend
- Parameters:
message
- - The message object received from the connector.messageTransportId
- - The transport ID the connector gives a message.- Throws:
DomibusConnectorClientBackendException
-
deliverNewAcknowledgeableConfirmationToClientBackend
public void deliverNewAcknowledgeableConfirmationToClientBackend(DomibusConnectorMessageType message, String messageTransportId) throws DomibusConnectorClientBackendException
Description copied from interface:DomibusConnectorClientBackend
This method triggers the client's backend to store/put/forward confirmation received. Must be implemented if the message pulling with acknowledgement is used.- Specified by:
deliverNewAcknowledgeableConfirmationToClientBackend
in interfaceDomibusConnectorClientBackend
- Parameters:
message
- - The message object containing the confirmation received from the connector.messageTransportId
- - The transport ID the connector gives a message.- Throws:
DomibusConnectorClientBackendException
-
-