HttpServerFilter instead of extending this class and replace any usages of `micronaut.once`
attributes with a custom attribute name.@Deprecated public abstract class OncePerRequestHttpServerFilter extends java.lang.Object implements HttpServerFilter
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
OncePerRequestHttpServerFilter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<MutableHttpResponse<?>> |
doFilter(HttpRequest<?> request,
ServerFilterChain chain)
Deprecated.
Variation of the
HttpServerFilter.doFilter(HttpRequest, FilterChain) method that accepts a ServerFilterChain
which allows to mutate the outgoing HTTP response. |
protected abstract org.reactivestreams.Publisher<MutableHttpResponse<?>> |
doFilterOnce(HttpRequest<?> request,
ServerFilterChain chain)
Deprecated.
|
static java.lang.String |
getKey(java.lang.Class<? extends OncePerRequestHttpServerFilter> filterClass)
Deprecated.
Implement custom keys for request attributes based on the need of the filter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoFilterpublic OncePerRequestHttpServerFilter()
public final org.reactivestreams.Publisher<MutableHttpResponse<?>> doFilter(HttpRequest<?> request, ServerFilterChain chain)
HttpServerFilterHttpServerFilter.doFilter(HttpRequest, FilterChain) method that accepts a ServerFilterChain
which allows to mutate the outgoing HTTP response.doFilter in interface HttpServerFilterrequest - The requestchain - The chainPublisher that emits a MutableHttpResponseHttpServerFilter.doFilter(HttpRequest, FilterChain)@Deprecated public static java.lang.String getKey(java.lang.Class<? extends OncePerRequestHttpServerFilter> filterClass)
filterClass - the filter classprotected abstract org.reactivestreams.Publisher<MutableHttpResponse<?>> doFilterOnce(HttpRequest<?> request, ServerFilterChain chain)
request - The HttpRequest instancechain - The ServerFilterChain instancePublisher for the Http response