BotFrameworkHttpAdapter Classe

public class BotFrameworkHttpAdapter
extends BotFrameworkAdapter

BotFrameworkAdapter qui reçoit des activités entrantes via HTTP.

Récapitulatif du constructeur

Constructeur Description
BotFrameworkHttpAdapter(CredentialProvider withCredentialProvider, ChannelProvider withChannelProvider)

Construit avec le fournisseur d’informations d’identificationet le fournisseur dede canal.

BotFrameworkHttpAdapter(Configuration withConfiguration)

Construire avec une configuration.

BotFrameworkHttpAdapter(Configuration withConfiguration, AuthenticationConfiguration withAuthenticationConfiguration)

Construire avec une configuration.

Résumé de la méthode

Modificateur et type Méthode et description
java.util.concurrent.CompletableFuture<InvokeResponse> processIncomingActivity(String authHeader, Activity activity, Bot bot)

Traite une activité entrante.

Méthodes héritées de BotAdapter

Méthodes héritées de BotFrameworkAdapter

Méthodes héritées de java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Détails du constructeur

BotFrameworkHttpAdapter

public BotFrameworkHttpAdapter(CredentialProvider withCredentialProvider, ChannelProvider withChannelProvider)

Construit avec CredentialProvider et ChannelProvider.

Paramètres:

withCredentialProvider - CredentialProvider à utiliser.
withChannelProvider - ChannelProvider à utiliser.

BotFrameworkHttpAdapter

public BotFrameworkHttpAdapter(Configuration withConfiguration)

Construire avec une configuration. Cela crée un CredentialProvider et ChannelProvider en fonction des valeurs de configuration.

Paramètres:

withConfiguration - Configuration à utiliser.

BotFrameworkHttpAdapter

public BotFrameworkHttpAdapter(Configuration withConfiguration, AuthenticationConfiguration withAuthenticationConfiguration)

Construire avec une configuration. Cela crée un CredentialProvider et ChannelProvider en fonction des valeurs de configuration.

Paramètres:

withConfiguration - Configuration à utiliser.
withAuthenticationConfiguration - AuthenticationConfiguration à utiliser.

Détails de la méthode

processIncomingActivity

public CompletableFuture processIncomingActivity(String authHeader, Activity activity, Bot bot)

Traite une activité entrante.

Paramètres:

authHeader - En-tête d’autorisation de la requête http.
activity - Activité reçue.
bot - Un bot.

Retours:

A CompletableFuture.

S’applique à