public class WhatsAppJmsExternalConversationSystemAdapter extends Object implements WhatsAppExternalConversationSystemAdapter
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.jms.core.JmsMessageOperations |
jmsMessagingOperations |
protected int |
maximumMessageSize |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected String |
outboundMessageDestination |
| Constructor and Description |
|---|
WhatsAppJmsExternalConversationSystemAdapter(org.springframework.jms.core.JmsMessageOperations jmsMessagingOperations,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
String outboundMessageDestination,
int maximumMessageSize) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkMessageSize(String content) |
String |
convertAndCheckMessageSize(String message) |
WhatsAppContactVerificationQuery |
createContactVerificationQuery()
Create the verification query for WhatsApp contacts.
|
ExternalMessageBuilder |
createMessageBuilder()
Creates the
ExternalMessageBuilder that is responsible for constructing the external message
for the give external user id. |
WhatsAppTemplateMessageBuilder |
createTemplateMessageBuilder()
Create a message builder for the WhatsApp template message.
|
String |
getExternalSystemId()
Returns the id of the external system implemented by this adapter.
|
protected void |
send(Object payload,
String type) |
void |
sendMessageDuringCommitting(OutboundMessageDto outboundMessage) |
void |
sendOutboundMessage(OutboundMessageDto outboundMessage) |
void |
validateMessageContent(String messageContent)
Validates the content of the message.
|
void |
verifyContact(WhatsAppContactVerificationRequest payload) |
protected final org.springframework.jms.core.JmsMessageOperations jmsMessagingOperations
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected final String outboundMessageDestination
protected final int maximumMessageSize
public WhatsAppJmsExternalConversationSystemAdapter(org.springframework.jms.core.JmsMessageOperations jmsMessagingOperations,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
String outboundMessageDestination,
int maximumMessageSize)
public String getExternalSystemId()
ExternalConversationSystemAdaptergetExternalSystemId in interface ExternalConversationSystemAdapterpublic ExternalMessageBuilder createMessageBuilder()
ExternalConversationSystemAdapterExternalMessageBuilder that is responsible for constructing the external message
for the give external user id.
This is invoked by the engage system when sending out outbound messages.createMessageBuilder in interface ExternalConversationSystemAdapterExternalMessageBuilderpublic WhatsAppTemplateMessageBuilder createTemplateMessageBuilder()
WhatsAppExternalConversationSystemAdaptercreateTemplateMessageBuilder in interface WhatsAppExternalConversationSystemAdapterpublic WhatsAppContactVerificationQuery createContactVerificationQuery()
WhatsAppExternalConversationSystemAdaptercreateContactVerificationQuery in interface WhatsAppExternalConversationSystemAdapterpublic void validateMessageContent(String messageContent)
ExternalConversationSystemAdaptervalidateMessageContent in interface ExternalConversationSystemAdaptermessageContent - the content of the message that should be validatedprotected boolean checkMessageSize(String content)
public void sendOutboundMessage(OutboundMessageDto outboundMessage)
public void sendMessageDuringCommitting(OutboundMessageDto outboundMessage)
public void verifyContact(WhatsAppContactVerificationRequest payload)
Copyright © 2019. All rights reserved.