public class HandleRequestInterceptor extends Object implements InstanceMethodsAroundInterceptor
HandleRequestInterceptor creates an entry span before the execution of ExceptionHandler.handleRequest(HttpServerExchange) in the I/O thread.
If the Config.Plugin.Light4J#TRACE_HANDLER_CHAIN flag is set, additionally a local span is produced for each
MiddlewareHandler and business handler before their respective HttpHandler.handleRequest(HttpServerExchange) method executes. Since LightHttpHandler is implemented by various middleware and business handlers and the Light4J
framework delegates to these in succession, a chain of LocalSpans
will be produced.
| Constructor and Description |
|---|
HandleRequestInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
Object |
afterMethod(EnhancedInstance objInst,
Method method,
Object[] allArguments,
Class<?>[] argumentsTypes,
Object ret) |
void |
beforeMethod(EnhancedInstance objInst,
Method method,
Object[] allArguments,
Class<?>[] argumentsTypes,
MethodInterceptResult result) |
void |
handleMethodException(EnhancedInstance objInst,
Method method,
Object[] allArguments,
Class<?>[] argumentsTypes,
Throwable t) |
public void beforeMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, MethodInterceptResult result)
beforeMethod in interface InstanceMethodsAroundInterceptorpublic Object afterMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Object ret)
afterMethod in interface InstanceMethodsAroundInterceptorpublic void handleMethodException(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Throwable t)
handleMethodException in interface InstanceMethodsAroundInterceptorCopyright © 2020 The Apache Software Foundation. All rights reserved.