public abstract class OncePerRequestHttpServerFilter extends java.lang.Object implements HttpServerFilter
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
OncePerRequestHttpServerFilter() |
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<MutableHttpResponse<?>> |
doFilter(HttpRequest<?> request,
ServerFilterChain chain)
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) |
static java.lang.String |
getKey(java.lang.Class<? extends OncePerRequestHttpServerFilter> filterClass)
Obtain the key used to store the attribute within a request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doFilter
public final org.reactivestreams.Publisher<MutableHttpResponse<?>> doFilter(HttpRequest<?> request, ServerFilterChain chain)
HttpServerFilter
HttpServerFilter.doFilter(HttpRequest, FilterChain)
method that accepts a ServerFilterChain
which allows to mutate the outgoing HTTP response.doFilter
in interface HttpServerFilter
request
- The requestchain
- The chainPublisher
that emits a MutableHttpResponse
HttpServerFilter.doFilter(HttpRequest, FilterChain)
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