-
- All Implemented Interfaces:
-
com.hexagonkt.core.handlers.Handler
public final class AfterHandler<T extends Object> implements Handler<T>
After handlers are executed even if a filter don't call next handler (if after was added before filter).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAfterHandler.Companion
-
Field Summary
Fields Modifier and Type Field Description private final SuspendFunction1<Context<T>, Boolean>predicateprivate final SuspendFunction1<Context<T>, Context<T>>callbackprivate final SuspendFunction1<Context<T>, Boolean>afterFilterprivate final SuspendFunction1<Context<T>, Context<T>>afterCallback
-
Constructor Summary
Constructors Constructor Description AfterHandler(SuspendFunction1<Context<T>, Boolean> afterFilter, SuspendFunction1<Context<T>, Context<T>> afterCallback)
-
Method Summary
Modifier and Type Method Description SuspendFunction1<Context<T>, Boolean>getPredicate()SuspendFunction1<Context<T>, Context<T>>getCallback()final SuspendFunction1<Context<T>, Boolean>getAfterFilter()final SuspendFunction1<Context<T>, Context<T>>getAfterCallback()-
-
Constructor Detail
-
AfterHandler
AfterHandler(SuspendFunction1<Context<T>, Boolean> afterFilter, SuspendFunction1<Context<T>, Context<T>> afterCallback)
-
-
Method Detail
-
getPredicate
SuspendFunction1<Context<T>, Boolean> getPredicate()
-
getCallback
SuspendFunction1<Context<T>, Context<T>> getCallback()
-
getAfterFilter
final SuspendFunction1<Context<T>, Boolean> getAfterFilter()
-
getAfterCallback
final SuspendFunction1<Context<T>, Context<T>> getAfterCallback()
-
-
-
-