BotFrameworkHttpAdapter Classe

public class BotFrameworkHttpAdapter
extends BotFrameworkAdapter

Um BotFrameworkAdapter que recebe atividades de entrada via HTTP.

Resumo do Construtor

Construtor Description
BotFrameworkHttpAdapter(CredentialProvider withCredentialProvider, ChannelProvider withChannelProvider)

Constrói com Provedor de Credenciaise Provedor de Canal.

BotFrameworkHttpAdapter(Configuration withConfiguration)

Construa com uma Configuração.

BotFrameworkHttpAdapter(Configuration withConfiguration, AuthenticationConfiguration withAuthenticationConfiguration)

Construa com uma Configuração.

Resumo do método

Modificador e tipo Método e descrição
java.util.concurrent.CompletableFuture<InvokeResponse> processIncomingActivity(String authHeader, Activity activity, Bot bot)

Processa uma atividade de entrada.

Métodos herdados de BotAdapter

Métodos herdados de BotFrameworkAdapter

Métodos herdados 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

Detalhes do construtor

BotFrameworkHttpAdapter

public BotFrameworkHttpAdapter(CredentialProvider withCredentialProvider, ChannelProvider withChannelProvider)

Constructos com CredentialProvider e ChannelProvider.

Parameters:

withCredentialProvider - O CredentialProvider a ser usado.
withChannelProvider - O ChannelProvider a ser usado.

BotFrameworkHttpAdapter

public BotFrameworkHttpAdapter(Configuration withConfiguration)

Construa com uma Configuração. Isso criará um CredentialProvider e ChannelProvider com base nos valores de configuração.

Parameters:

withConfiguration - A Configuração a ser usada.

BotFrameworkHttpAdapter

public BotFrameworkHttpAdapter(Configuration withConfiguration, AuthenticationConfiguration withAuthenticationConfiguration)

Construa com uma Configuração. Isso criará um CredentialProvider e ChannelProvider com base nos valores de configuração.

Parameters:

withConfiguration - A Configuração a ser usada.
withAuthenticationConfiguration - A AuthenticationConfiguration a ser usada.

Detalhes do método

processIncomingActivity

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

Processa uma atividade de entrada.

Parameters:

authHeader - O cabeçalho Authorization da solicitação http.
activity - A atividade recebida.
bot - Um Bot.

Returns:

Um CompleteableFuture.

Aplica-se a