InspectionMiddleware Class

public class InspectionMiddleware
extends InterceptionMiddleware

Constructor Summary

Constructor Description
InspectionMiddleware(InspectionState withInspectionState)
InspectionMiddleware(InspectionState withInspectionState, UserState withUserState, ConversationState withConversationState, MicrosoftAppCredentials withCredentials)

Method Summary

Modifier and Type Method and Description
protected InspectionSession createSession(ConversationReference reference, MicrosoftAppCredentials credentials)
protected java.util.concurrent.CompletableFuture<com.microsoft.bot.builder.inspection.InterceptionMiddleware.Intercept> inbound(TurnContext turnContext, Activity activity)
protected java.util.concurrent.CompletableFuture<java.lang.Void> outbound(TurnContext turnContext, List<Activity> clonedActivities)
java.util.concurrent.CompletableFuture<java.lang.Boolean> processCommand(TurnContext turnContext)
protected java.util.concurrent.CompletableFuture<java.lang.Void> traceState(TurnContext turnContext)

Methods inherited from InterceptionMiddleware

Methods inherited from 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

Constructor Details

InspectionMiddleware

public InspectionMiddleware(InspectionState withInspectionState)

Parameters:

withInspectionState

InspectionMiddleware

public InspectionMiddleware(InspectionState withInspectionState, UserState withUserState, ConversationState withConversationState, MicrosoftAppCredentials withCredentials)

Parameters:

withInspectionState
withUserState
withConversationState
withCredentials

Method Details

createSession

protected InspectionSession createSession(ConversationReference reference, MicrosoftAppCredentials credentials)

Parameters:

reference
credentials

inbound

protected CompletableFuture inbound(TurnContext turnContext, Activity activity)

Overrides:

InspectionMiddleware.inbound(TurnContext turnContext, Activity activity)

Parameters:

turnContext
activity

outbound

protected CompletableFuture outbound(TurnContext turnContext, List clonedActivities)

Overrides:

InspectionMiddleware.outbound(TurnContext turnContext, List<Activity> clonedActivities)

Parameters:

turnContext
clonedActivities

processCommand

public CompletableFuture processCommand(TurnContext turnContext)

Parameters:

turnContext

traceState

protected CompletableFuture traceState(TurnContext turnContext)

Overrides:

InspectionMiddleware.traceState(TurnContext turnContext)

Parameters:

turnContext

Applies to