public abstract class AbstractHandlerHook extends Object implements HandlerHook
HandlerHook that provides no-op for both
HandlerHook.preCall(HttpRequest, HttpResponder, HandlerInfo)
and HandlerHook.postCall(HttpRequest, HttpResponseStatus, HandlerInfo) methods.| Constructor and Description |
|---|
AbstractHandlerHook() |
| Modifier and Type | Method and Description |
|---|---|
void |
postCall(io.netty.handler.codec.http.HttpRequest request,
io.netty.handler.codec.http.HttpResponseStatus status,
io.cdap.http.internal.HandlerInfo handlerInfo)
postCall is run after a handler method call is made.
|
boolean |
preCall(io.netty.handler.codec.http.HttpRequest request,
HttpResponder responder,
io.cdap.http.internal.HandlerInfo handlerInfo)
preCall is run before a handler method call is made.
|
public boolean preCall(io.netty.handler.codec.http.HttpRequest request,
HttpResponder responder,
io.cdap.http.internal.HandlerInfo handlerInfo)
HandlerHookpreCall in interface HandlerHookrequest - HttpRequest being processed.responder - HttpResponder to send response.handlerInfo - Info on handler method that will be called.public void postCall(io.netty.handler.codec.http.HttpRequest request,
io.netty.handler.codec.http.HttpResponseStatus status,
io.cdap.http.internal.HandlerInfo handlerInfo)
HandlerHookpostCall in interface HandlerHookrequest - HttpRequest being processed.status - Http status returned to the client.handlerInfo - Info on handler method that was called.Copyright 2021 Cask, Inc. Licensed under the Apache License, Version 2.0