InterceptionMiddleware 类

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

实现

public abstract class InterceptionMiddleware
implements Middleware

构造函数摘要

构造函数 说明
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)

Parameters:

withLogger

方法详细信息

getLogger

protected Logger getLogger()

inbound

protected abstract CompletableFuture inbound(TurnContext turnContext, Activity activity)

Parameters:

turnContext
activity

onTurn

public CompletableFuture onTurn(TurnContext turnContext, NextDelegate next)

处理传入活动。

Parameters:

turnContext
next

outbound

protected abstract CompletableFuture outbound(TurnContext turnContext, List clonedActivities)

Parameters:

turnContext
clonedActivities

traceState

protected abstract CompletableFuture traceState(TurnContext turnContext)

Parameters:

turnContext

适用于