public class AdaptCachedBodyGlobalFilter extends Object implements GlobalFilter, org.springframework.core.Ordered, org.springframework.context.ApplicationListener<EnableBodyCachingEvent>
Modifier and Type | Field and Description |
---|---|
static String |
CACHED_REQUEST_BODY_KEY
Deprecated.
|
Constructor and Description |
---|
AdaptCachedBodyGlobalFilter() |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
filter(org.springframework.web.server.ServerWebExchange exchange,
GatewayFilterChain chain)
Process the Web request and (optionally) delegate to the next
WebFilter
through the given GatewayFilterChain . |
int |
getOrder() |
void |
onApplicationEvent(EnableBodyCachingEvent event) |
@Deprecated public static final String CACHED_REQUEST_BODY_KEY
public void onApplicationEvent(EnableBodyCachingEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<EnableBodyCachingEvent>
public reactor.core.publisher.Mono<Void> filter(org.springframework.web.server.ServerWebExchange exchange, GatewayFilterChain chain)
GlobalFilter
WebFilter
through the given GatewayFilterChain
.filter
in interface GlobalFilter
exchange
- the current server exchangechain
- provides a way to delegate to the next filterMono<Void>
to indicate when request processing is completepublic int getOrder()
getOrder
in interface org.springframework.core.Ordered
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.