InterceptionMiddleware 類別

  • java.lang.Object
    • com.microsoft.bot.builder.inspection.InterceptionMiddleware

實作

public abstract class InterceptionMiddleware
implements Middleware

建構函式摘要

建構函式 Description
InterceptionMiddleware(Logger withLogger)

方法摘要

修飾詞與類型 方法與描述
protected org.slf4j.Logger getLogger()
protected abstract java.util.concurrent.CompletableFuture<com.microsoft.bot.builder.inspection.InterceptionMiddleware.Intercept> inbound(TurnContext turnContext, Activity activity)
java.util.concurrent.CompletableFuture<java.lang.Void> onTurn(TurnContext turnContext, NextDelegate next)

處理傳入活動。

protected abstract java.util.concurrent.CompletableFuture<java.lang.Void> outbound(TurnContext turnContext, List<Activity> clonedActivities)
protected abstract java.util.concurrent.CompletableFuture<java.lang.Void> traceState(TurnContext turnContext)

方法繼承來源 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

建構函式詳細資料

InterceptionMiddleware

public InterceptionMiddleware(Logger withLogger)

參數:

withLogger

方法詳細資料

getLogger

protected Logger getLogger()

inbound

protected abstract CompletableFuture inbound(TurnContext turnContext, Activity activity)

參數:

turnContext
activity

onTurn

public CompletableFuture onTurn(TurnContext turnContext, NextDelegate next)

處理傳入活動。

參數:

turnContext
next

outbound

protected abstract CompletableFuture outbound(TurnContext turnContext, List clonedActivities)

參數:

turnContext
clonedActivities

traceState

protected abstract CompletableFuture traceState(TurnContext turnContext)

參數:

turnContext

適用於