MiddlewareSet Class
- java.
lang. Object - com.
microsoft. bot. builder. MiddlewareSet
- com.
Implements
public class MiddlewareSet
implements Middleware
Contains an ordered set of Middleware.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| MiddlewareSet() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.util.concurrent.CompletableFuture<java.lang.Void> |
onTurn(TurnContext turnContext, NextDelegate next)
Processes an incoming activity. |
| java.util.concurrent.CompletableFuture<java.lang.Void> |
receiveActivityWithStatus(TurnContext context, BotCallbackHandler callback)
Processes an activity. |
|
Middleware |
use(Middleware middleware)
Adds a middleware object to the end of the set. |
Methods inherited from java.lang.Object
Constructor Details
MiddlewareSet
public MiddlewareSet()
Method Details
onTurn
public CompletableFuture
Processes an incoming activity.
Parameters:
Returns:
next delegate to pass control to the next middleware in
the pipeline. If middleware doesn\u2019t call the next delegate, the
adapter does not call any of the subsequent middleware\u2019s request
handlers or the bot\u2019s receive handler, and the pipeline short
circuits.
The context provides information about the incoming activity,
and other data needed to process the activity.
TurnContext Activity
receiveActivityWithStatus
public CompletableFuture
Processes an activity.
Parameters:
Returns:
use
public MiddlewareSet use(Middleware middleware)
Adds a middleware object to the end of the set.
Parameters:
Returns: