Package com.hexagonkt.http.handlers
Class AfterHandler
-
- All Implemented Interfaces:
-
com.hexagonkt.handlers.Handler,com.hexagonkt.http.handlers.HttpHandler
public final class AfterHandler implements HttpHandler, Handler<HttpCall>
-
-
Field Summary
Fields Modifier and Type Field Description private final HttpPredicatehandlerPredicateprivate final Function1<HttpContext, HttpContext>blockprivate final Function1<Context<HttpCall>, Context<HttpCall>>callbackprivate final Function1<Context<HttpCall>, Boolean>predicate
-
Constructor Summary
Constructors Constructor Description AfterHandler(Set<HttpMethod> methods, String pattern, KClass<out Exception> exception, HttpStatus status, Function1<HttpContext, HttpContext> block)AfterHandler(HttpMethod method, String pattern, Function1<HttpContext, HttpContext> block)AfterHandler(String pattern, Function1<HttpContext, HttpContext> block)AfterHandler(HttpPredicate handlerPredicate, Function1<HttpContext, HttpContext> block)
-
Method Summary
Modifier and Type Method Description HttpPredicategetHandlerPredicate()final Function1<HttpContext, HttpContext>getBlock()HttpHandleraddPrefix(String prefix)-
Methods inherited from class com.hexagonkt.handlers.Handler
getCallback, getPredicate, process -
Methods inherited from class com.hexagonkt.http.handlers.HttpHandler
byMethod, filter, process -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AfterHandler
AfterHandler(Set<HttpMethod> methods, String pattern, KClass<out Exception> exception, HttpStatus status, Function1<HttpContext, HttpContext> block)
-
AfterHandler
AfterHandler(HttpMethod method, String pattern, Function1<HttpContext, HttpContext> block)
-
AfterHandler
AfterHandler(String pattern, Function1<HttpContext, HttpContext> block)
-
AfterHandler
AfterHandler(HttpPredicate handlerPredicate, Function1<HttpContext, HttpContext> block)
-
-
Method Detail
-
getHandlerPredicate
HttpPredicate getHandlerPredicate()
-
getBlock
final Function1<HttpContext, HttpContext> getBlock()
-
addPrefix
HttpHandler addPrefix(String prefix)
-
-
-
-