public class LogbackAccessUndertowHttpHandler extends Object implements io.undertow.server.HttpHandler
AccessLogHandler
.
Because emits an own customized access event (UndertowLogbackAccessEvent
).AccessLogHandler
Constructor and Description |
---|
LogbackAccessUndertowHttpHandler(LogbackAccessProperties logbackAccessProperties,
org.springframework.core.env.Environment environment,
org.springframework.context.ApplicationEventPublisher applicationEventPublisher,
io.undertow.server.HttpHandler nextHandler)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
handleExchangeEvent(io.undertow.server.HttpServerExchange exchange,
io.undertow.server.ExchangeCompletionListener.NextListener nextListener)
Handles exchange event.
|
void |
handleRequest(io.undertow.server.HttpServerExchange exchange) |
public LogbackAccessUndertowHttpHandler(LogbackAccessProperties logbackAccessProperties, org.springframework.core.env.Environment environment, org.springframework.context.ApplicationEventPublisher applicationEventPublisher, io.undertow.server.HttpHandler nextHandler)
logbackAccessProperties
- the configuration properties for Logback-access.environment
- the environment.applicationEventPublisher
- the application event publisher.nextHandler
- the next HTTP handler.public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
handleRequest
in interface io.undertow.server.HttpHandler
Exception
public void handleExchangeEvent(io.undertow.server.HttpServerExchange exchange, io.undertow.server.ExchangeCompletionListener.NextListener nextListener)
exchange
- the HTTP server exchange.nextListener
- the next listener.Copyright © 2021 akkinoc.dev. All rights reserved.