Module io.inverno.mod.http.server
Package io.inverno.mod.http.server
Class HttpAccessLogsInterceptor<A extends ExchangeContext,B extends Exchange<A>>
java.lang.Object
io.inverno.mod.http.server.HttpAccessLogsInterceptor<A,B>
- Type Parameters:
A
- the type of the exchange contextB
- the type of exchange handled by the handler
- All Implemented Interfaces:
ExchangeInterceptor<A,
B>
public class HttpAccessLogsInterceptor<A extends ExchangeContext,B extends Exchange<A>>
extends Object
implements ExchangeInterceptor<A,B>
Intercepts exchanges or error exchanges and logs HTTP access.
- Since:
- 1.10
- Author:
- Jeremy Kuhn
-
Constructor Details
-
HttpAccessLogsInterceptor
public HttpAccessLogsInterceptor()
-
-
Method Details
-
intercept
Description copied from interface:ExchangeInterceptor
Intercepts the exchange before the exchange handler is invoked.
- Specified by:
intercept
in interfaceExchangeInterceptor<A extends ExchangeContext,
B extends Exchange<A>> - Parameters:
exchange
- the server exchange to handle- Returns:
- a Mono emitting the exchange or an instrumented exchange to continue the exchange handling chain or an empty Mono to stop the exchange handling chain
-