Skip to content

Commit b7c1a5e

Browse files
authored
Update README.md
1 parent 613ba9c commit b7c1a5e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • stubbornjava-undertow/src/main/java/com/stubbornjava/undertow/handlers
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Custom Undertow HttpHandlers
22

3-
## Middleware (Filters / interceptors)
4-
The MiddlewareBuilder is a helper for composing HttpHandlers. Many existing and custom HttpHandlers are passed one or more delegate handlers and route accordingly based on some logic. Maintaining deeply nested handlers can sometimes be a challenge. [Middlware](https://www.stubbornjava.com/posts/logging-gzip-blocking-exception-handling-metrics-middleware-chaining-in-undertow) is here to help.
3+
## MiddlewareBuilder (Filters / interceptors)
4+
The MiddlewareBuilder is a helper for composing HttpHandlers. Many existing and custom HttpHandlers are passed one or more delegate handlers and route accordingly based on some logic. Maintaining deeply nested handlers can sometimes be a challenge. [Undertow MiddlwareBuilder](https://www.stubbornjava.com/posts/logging-gzip-blocking-exception-handling-metrics-middleware-chaining-in-undertow) is here to help.
55
```
66
MiddlewareBuilder.begin(BlockingHandler::new)
77
.next(CustomHandlers::gzip)
@@ -11,3 +11,7 @@ MiddlewareBuilder.begin(BlockingHandler::new)
1111
.complete(handler);
1212
```
1313
14+
## Access Logging
15+
Undertow comes with a flexbile access log handler. Creating a custom log receiver is easy.
16+
### Slf4jAccessLogReceiver
17+
Example implementation of [SLF4J Undertow Access Logging](https://www.stubbornjava.com/posts/http-access-logging-with-undertow#adding-the-accessloghandler)

0 commit comments

Comments
 (0)