Class RewriteResponseHeaderGatewayFilterFactory
java.lang.Object
org.springframework.cloud.gateway.support.AbstractConfigurable<RewriteResponseHeaderGatewayFilterFactory.Config>
org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory<RewriteResponseHeaderGatewayFilterFactory.Config>
org.springframework.cloud.gateway.filter.factory.RewriteResponseHeaderGatewayFilterFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, GatewayFilterFactory<RewriteResponseHeaderGatewayFilterFactory.Config>, Configurable<RewriteResponseHeaderGatewayFilterFactory.Config>, ShortcutConfigurable, org.springframework.context.ApplicationEventPublisherAware
public class RewriteResponseHeaderGatewayFilterFactory
extends AbstractGatewayFilterFactory<RewriteResponseHeaderGatewayFilterFactory.Config>
- Author:
- Vitaliy Pavlyuk
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AbstractGatewayFilterFactory
AbstractGatewayFilterFactory.NameConfigNested classes/interfaces inherited from interface ShortcutConfigurable
ShortcutConfigurable.GatewayBeanFactoryResolver, ShortcutConfigurable.GatewayEvaluationContext, ShortcutConfigurable.RestrictivePropertyAccessor, ShortcutConfigurable.ShortcutType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRegexp key.static final StringReplacement key.Fields inherited from interface GatewayFilterFactory
NAME_KEY, VALUE_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrewriteHeaders(RewriteResponseHeaderGatewayFilterFactory.Config config, List<String> headers) protected voidrewriteHeaders(org.springframework.web.server.ServerWebExchange exchange, RewriteResponseHeaderGatewayFilterFactory.Config config) Returns hints about the number of args and the order for shortcut parsing.Methods inherited from class AbstractGatewayFilterFactory
enableBodyCaching, getPublisher, setApplicationEventPublisherMethods inherited from class AbstractConfigurable
getConfigClass, newConfig, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface GatewayFilterFactory
apply, apply, apply, getConfigClass, name, newConfigMethods inherited from interface ShortcutConfigurable
shortcutFieldPrefix, shortcutType
-
Field Details
-
REGEXP_KEY
-
REPLACEMENT_KEY
-
-
Constructor Details
-
RewriteResponseHeaderGatewayFilterFactory
public RewriteResponseHeaderGatewayFilterFactory()
-
-
Method Details
-
shortcutFieldOrder
Description copied from interface:ShortcutConfigurableReturns hints about the number of args and the order for shortcut parsing.- Returns:
- the list of hints
-
apply
-
rewriteHeaders
protected void rewriteHeaders(org.springframework.web.server.ServerWebExchange exchange, RewriteResponseHeaderGatewayFilterFactory.Config config) -
rewriteHeaders
protected List<String> rewriteHeaders(RewriteResponseHeaderGatewayFilterFactory.Config config, List<String> headers)
-