Class ModifyResponseBodyGatewayFilterFactory.ModifyResponseGatewayFilter
- java.lang.Object
-
- org.springframework.cloud.gateway.filter.factory.rewrite.ModifyResponseBodyGatewayFilterFactory.ModifyResponseGatewayFilter
-
- All Implemented Interfaces:
GatewayFilter
,ShortcutConfigurable
,org.springframework.core.Ordered
- Enclosing class:
- ModifyResponseBodyGatewayFilterFactory
public class ModifyResponseBodyGatewayFilterFactory.ModifyResponseGatewayFilter extends Object implements GatewayFilter, org.springframework.core.Ordered
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
ShortcutConfigurable.GatewayEvaluationContext, ShortcutConfigurable.RestrictivePropertyAccessor, ShortcutConfigurable.ShortcutType
-
-
Field Summary
-
Fields inherited from interface org.springframework.cloud.gateway.filter.GatewayFilter
NAME_KEY, VALUE_KEY
-
-
Constructor Summary
Constructors Constructor Description ModifyResponseGatewayFilter(ModifyResponseBodyGatewayFilterFactory.Config config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<Void>
filter(org.springframework.web.server.ServerWebExchange exchange, GatewayFilterChain chain)
Process the Web request and (optionally) delegate to the nextWebFilter
through the givenGatewayFilterChain
.int
getOrder()
void
setFactory(GatewayFilterFactory<ModifyResponseBodyGatewayFilterFactory.Config> gatewayFilterFactory)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
shortcutFieldOrder, shortcutFieldPrefix, shortcutType
-
-
-
-
Constructor Detail
-
ModifyResponseGatewayFilter
public ModifyResponseGatewayFilter(ModifyResponseBodyGatewayFilterFactory.Config config)
-
-
Method Detail
-
filter
public reactor.core.publisher.Mono<Void> filter(org.springframework.web.server.ServerWebExchange exchange, GatewayFilterChain chain)
Description copied from interface:GatewayFilter
Process the Web request and (optionally) delegate to the nextWebFilter
through the givenGatewayFilterChain
.- Specified by:
filter
in interfaceGatewayFilter
- Parameters:
exchange
- the current server exchangechain
- provides a way to delegate to the next filter- Returns:
Mono<Void>
to indicate when request processing is complete
-
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
setFactory
public void setFactory(GatewayFilterFactory<ModifyResponseBodyGatewayFilterFactory.Config> gatewayFilterFactory)
-
-