BotFrameworkHttpAdapter Classe

public class BotFrameworkHttpAdapter
extends BotFrameworkAdapter

BotFrameworkAdapter che riceve le attività in ingresso tramite HTTP.

Riepilogo dei costruttori

Costruttore Descrizione
BotFrameworkHttpAdapter(CredentialProvider withCredentialProvider, ChannelProvider withChannelProvider)

Costrutti con providercredenziali e provider dicanale.

BotFrameworkHttpAdapter(Configuration withConfiguration)

Costruire con una configurazione.

BotFrameworkHttpAdapter(Configuration withConfiguration, AuthenticationConfiguration withAuthenticationConfiguration)

Costruire con una configurazione.

Riepilogo dei metodi

Modificatore e tipo Metodo e descrizione
java.util.concurrent.CompletableFuture<InvokeResponse> processIncomingActivity(String authHeader, Activity activity, Bot bot)

Elabora un'attività in ingresso.

Metodi ereditati da BotAdapter

Metodi ereditati da BotFrameworkAdapter

Metodi ereditati da 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

Dettagli costruttore

BotFrameworkHttpAdapter

public BotFrameworkHttpAdapter(CredentialProvider withCredentialProvider, ChannelProvider withChannelProvider)

Costruisce con CredentialProvider e ChannelProvider.

Parametri:

withCredentialProvider - CredentialProvider da usare.
withChannelProvider - ChannelProvider da usare.

BotFrameworkHttpAdapter

public BotFrameworkHttpAdapter(Configuration withConfiguration)

Costruire con una configurazione. Verrà creato un CredentialProvider e ChannelProvider in base ai valori di configurazione.

Parametri:

withConfiguration - Configurazione da usare.

BotFrameworkHttpAdapter

public BotFrameworkHttpAdapter(Configuration withConfiguration, AuthenticationConfiguration withAuthenticationConfiguration)

Costruire con una configurazione. Verrà creato un CredentialProvider e ChannelProvider in base ai valori di configurazione.

Parametri:

withConfiguration - Configurazione da usare.
withAuthenticationConfiguration - AuthenticationConfiguration da usare.

Dettagli metodo

processIncomingActivity

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

Elabora un'attività in ingresso.

Parametri:

authHeader - Intestazione di autorizzazione dalla richiesta HTTP.
activity - Attività ricevuta.
bot - Un bot.

Restituisce:

A CompletableFuture.

Si applica a