public final class Handlers extends Object
| Modifier and Type | Method and Description |
|---|---|
static DescribableHandler |
asDescribableHandler(Handler handler)
Adapts a
Handler to a DescribableHandler without adding support for API Descriptions if it is
not already implemented. |
static DescribableHandler |
chainOf(Handler handler,
Filter... filters)
Creates a
Handler which wraps the provided filters
around the provided target handler. |
static DescribableHandler |
chainOf(Handler handler,
List<Filter> filters)
Creates a
Handler which wraps the provided filters
around the provided target handler. |
static DescribableHandler |
filtered(Handler handler,
Filter filter)
Creates a "filtered handler" instance.
|
static Handler |
internalServerErrorHandler(Exception cause)
A common HTTP Framework
Handler responding 500 Internal Server Error. |
public static DescribableHandler filtered(Handler handler, Filter filter)
It will invoke the first filter, giving it the handler handler as next.
handler - The filtered instancefilter - the filter to applyHandler instance that filters the given handler.public static DescribableHandler chainOf(Handler handler, Filter... filters)
Handler which wraps the provided filters
around the provided target handler.handler - The target handler which will be invoked once
processing has reached the end of the filter chain.filters - The list of filters to be processed before invoking the
target.Handler.chainOf(Handler, List)public static DescribableHandler chainOf(Handler handler, List<Filter> filters)
Handler which wraps the provided filters
around the provided target handler.handler - The target handler which will be invoked once
processing has reached the end of the filter chain.filters - The list of filters to be processed before invoking the
target.Handler.chainOf(Handler, Filter...)public static DescribableHandler asDescribableHandler(Handler handler)
Handler to a DescribableHandler without adding support for API Descriptions if it is
not already implemented.handler - The handler.Copyright © 2025 Open Identity Platform Community. All rights reserved.