BotFrameworkHttpAdapter クラス

public class BotFrameworkHttpAdapter
extends BotFrameworkAdapter

HTTP 経由で受信アクティビティを受信する BotFrameworkAdapter。

コンストラクターの概要

コンストラクター 説明
BotFrameworkHttpAdapter(CredentialProvider withCredentialProvider, ChannelProvider withChannelProvider)

CredentialProvider と ChannelProvider を使用して構築します。

BotFrameworkHttpAdapter(Configuration withConfiguration)

構成を使用して構築します。

BotFrameworkHttpAdapter(Configuration withConfiguration, AuthenticationConfiguration withAuthenticationConfiguration)

構成を使用して構築します。

メソッドの概要

修飾子と型 メソッドと説明
java.util.concurrent.CompletableFuture<InvokeResponse> processIncomingActivity(String authHeader, Activity activity, Bot bot)

受信アクティビティを処理します。

メソッドの継承元: BotAdapter

メソッドの継承元: BotFrameworkAdapter

メソッドの継承元: 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

コンストラクターの詳細

BotFrameworkHttpAdapter

public BotFrameworkHttpAdapter(CredentialProvider withCredentialProvider, ChannelProvider withChannelProvider)

CredentialProvider と ChannelProvider を使用して構築します。

パラメーター:

withCredentialProvider - 使用する CredentialProvider。
withChannelProvider - 使用する ChannelProvider。

BotFrameworkHttpAdapter

public BotFrameworkHttpAdapter(Configuration withConfiguration)

構成を使用して構築します。 これにより、構成値に基づいて CredentialProvider と ChannelProvider が作成されます。

パラメーター:

withConfiguration - 使用する構成。

BotFrameworkHttpAdapter

public BotFrameworkHttpAdapter(Configuration withConfiguration, AuthenticationConfiguration withAuthenticationConfiguration)

構成を使用して構築します。 これにより、構成値に基づいて CredentialProvider と ChannelProvider が作成されます。

パラメーター:

withConfiguration - 使用する構成。
withAuthenticationConfiguration - 使用する AuthenticationConfiguration。

メソッドの詳細

processIncomingActivity

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

受信アクティビティを処理します。

パラメーター:

authHeader - http 要求からの Authorization ヘッダー。
activity - 受信したアクティビティ。
bot - ボット。

戻り値:

CompletableFuture。

適用対象