public class WebhookController extends AbstractWebhookController
DEFAULT_PATH| Constructor and Description |
|---|
WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageEventCallback messageEventHandler)
Creates the
WebhookController to receive only EventType.MESSAGE
events using the given configurations and default root
path ("/"). |
WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageEventCallback messageEventHandler,
AbstractClient client,
String url,
ChannelType channel)
Creates the
WebhookController to receive only EventType.MESSAGE events
using the given configurations and default root
path ("/"). |
WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageEventCallback messageEventHandler,
MessageStatusEventCallback messageStatusEventHandler)
Creates the
WebhookController to receive both EventType.MESSAGE and
EventType.MESSAGE_STATUS events using the given configurations
and default root path ("/"). |
WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageEventCallback messageEventHandler,
MessageStatusEventCallback messageStatusEventHandler,
AbstractClient client,
String url,
ChannelType channel)
Creates the
WebhookController to receive both EventType.MESSAGE and
EventType.MESSAGE_STATUS events using the given configurations and
default root path ("/"). |
WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageEventCallback messageEventHandler,
MessageStatusEventCallback messageStatusEventHandler,
String path)
Creates the
WebhookController to receive both EventType.MESSAGE and
EventType.MESSAGE_STATUS events using the given configurations. |
WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageEventCallback messageEventHandler,
MessageStatusEventCallback messageStatusEventHandler,
String path,
AbstractClient client,
String url,
ChannelType channel)
Creates the
WebhookController to receive both EventType.MESSAGE and
EventType.MESSAGE_STATUS events using the given configurations. |
WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageEventCallback messageEventHandler,
String path)
Creates the
WebhookController to receive only EventType.MESSAGE events
using the given configurations. |
WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageStatusEventCallback messageStatusEventHandler)
Creates the
WebhookController to receive only EventType.MESSAGE_STATUS events
using the given configurations and default root
path ("/"). |
WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageStatusEventCallback messageStatusEventHandler,
AbstractClient client,
String url,
ChannelType channel)
Creates the
WebhookController to receive only EventType.MESSAGE_STATUS events
using the given configurations and default root
path ("/"). |
WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageStatusEventCallback messageStatusEventHandler,
String path)
Creates the
WebhookController to receive only EventType.MESSAGE_STATUS events
using the given configurations. |
public WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageEventCallback messageEventHandler)
WebhookController to receive only EventType.MESSAGE
events using the given configurations and default root
path ("/").resourceConfig - The resource configuration to configure the webhook controller.messageEventHandler - An implementation of MessageEventCallback to receive a message event.public WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageEventCallback messageEventHandler,
MessageStatusEventCallback messageStatusEventHandler)
WebhookController to receive both EventType.MESSAGE and
EventType.MESSAGE_STATUS events using the given configurations
and default root path ("/").resourceConfig - The resource configuration to configure the webhook controller.messageEventHandler - An implementation of MessageEventCallback to receive a message event.messageStatusEventHandler - An implementation of MessageStatusEventCallback to receive a message status event.public WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageEventCallback messageEventHandler,
MessageStatusEventCallback messageStatusEventHandler,
String path)
WebhookController to receive both EventType.MESSAGE and
EventType.MESSAGE_STATUS events using the given configurations.resourceConfig - The resource configuration to configure the webhook controller.messageEventHandler - An implementation of MessageEventCallback to receive a message event.messageStatusEventHandler - An implementation of MessageStatusEventCallback to receive a message status event.path - Identifies the URI path to serve requests for webhook call.
When null, the default "/" will be used instead.public WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageEventCallback messageEventHandler,
String path)
WebhookController to receive only EventType.MESSAGE events
using the given configurations.resourceConfig - The resource configuration to configure the webhook controller.messageEventHandler - An implementation of MessageEventCallback to receive a message event.path - Identifies the URI path to serve requests for webhook call.
When null, the default "/" will be used instead.public WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageStatusEventCallback messageStatusEventHandler)
WebhookController to receive only EventType.MESSAGE_STATUS events
using the given configurations and default root
path ("/").resourceConfig - The resource configuration to configure the webhook controller.messageStatusEventHandler - An implementation of MessageStatusEventCallback to receive a message status event.public WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageStatusEventCallback messageStatusEventHandler,
String path)
WebhookController to receive only EventType.MESSAGE_STATUS events
using the given configurations.resourceConfig - The resource configuration to configure the webhook controller.messageStatusEventHandler - An implementation of MessageStatusEventCallback to receive a message status event.path - Identifies the URI path to serve requests for webhook call.
When null, the default "/" will be used instead.public WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageEventCallback messageEventHandler,
AbstractClient client,
String url,
ChannelType channel)
WebhookController to receive only EventType.MESSAGE events
using the given configurations and default root
path ("/").
The subscription will be created if it does not exist for these configurations.resourceConfig - The resource configuration to configure the webhook controller.messageEventHandler - An implementation of MessageEventCallback to receive a message event.client - Zenvia API Client to automatically creates a subscription.url - URL to be used in subscription creation.channel - ChannelType to trigger the callbacks for subscription to be created.public WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageStatusEventCallback messageStatusEventHandler,
AbstractClient client,
String url,
ChannelType channel)
WebhookController to receive only EventType.MESSAGE_STATUS events
using the given configurations and default root
path ("/").
The subscription will be created if it does not exist for these configurations.resourceConfig - The resource configuration to configure the webhook controller.messageStatusEventHandler - An implementation of MessageStatusEventCallback to receive a message status event.client - Zenvia API Client to automatically creates a subscription.url - URL to be used in subscription creation.channel - ChannelType to trigger the callbacks for subscription to be created.public WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageEventCallback messageEventHandler,
MessageStatusEventCallback messageStatusEventHandler,
AbstractClient client,
String url,
ChannelType channel)
WebhookController to receive both EventType.MESSAGE and
EventType.MESSAGE_STATUS events using the given configurations and
default root path ("/").
The subscription will be created if it does not exist for these configurations.resourceConfig - The resource configuration to configure the webhook controller.messageEventHandler - An implementation of MessageEventCallback to receive a message event.messageStatusEventHandler - An implementation of MessageStatusEventCallback to receive a message status event.client - Zenvia API Client to automatically creates a subscription.url - URL to be used in subscription creation.channel - ChannelType to trigger the callbacks for subscription to be created.public WebhookController(org.glassfish.jersey.server.ResourceConfig resourceConfig,
MessageEventCallback messageEventHandler,
MessageStatusEventCallback messageStatusEventHandler,
String path,
AbstractClient client,
String url,
ChannelType channel)
WebhookController to receive both EventType.MESSAGE and
EventType.MESSAGE_STATUS events using the given configurations.
The subscription will be created if it does not exist for these configurations.resourceConfig - The resource configuration to configure the webhook controller.messageEventHandler - An implementation of MessageEventCallback to receive a message event.messageStatusEventHandler - An implementation of MessageStatusEventCallback to receive a message status event.path - Identifies the URI path to serve requests for webhook call.
When null, the default "/" will be used instead.client - Zenvia API Client to automatically creates a subscription.url - URL to be used in subscription creation.channel - ChannelType to trigger the callbacks for subscription to be created.Copyright © 2019 Zenvia. All rights reserved.