Interface MiddlewareNext<I,O>
- Type Parameters:
I- The input typeO- The output type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
MiddlewareNext represents the next function in the middleware chain. It is
used by middleware to pass control to the next middleware or the actual
action.
-
Method Summary
Modifier and TypeMethodDescriptionapply(I request, ActionContext context) Calls the next middleware in the chain or the actual action.
-
Method Details
-
apply
Calls the next middleware in the chain or the actual action.- Parameters:
request- the input request (may be modified by the middleware)context- the action context (may be modified by the middleware)- Returns:
- the output response
- Throws:
GenkitException- if processing fails
-