Class RewriteResponseHeaderGatewayFilterFactory
java.lang.Object
org.springframework.cloud.gateway.support.AbstractConfigurable<C>
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 org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory
AbstractGatewayFilterFactory.NameConfigNested classes/interfaces inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
ShortcutConfigurable.GatewayEvaluationContext, ShortcutConfigurable.RestrictivePropertyAccessor, ShortcutConfigurable.ShortcutType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRegexp key.static final StringReplacement key.Fields inherited from interface org.springframework.cloud.gateway.filter.factory.GatewayFilterFactory
NAME_KEY, VALUE_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidrewriteHeader(org.springframework.web.server.ServerWebExchange exchange, RewriteResponseHeaderGatewayFilterFactory.Config config) Deprecated.rewriteHeaders(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 org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory
getPublisher, setApplicationEventPublisherMethods inherited from class org.springframework.cloud.gateway.support.AbstractConfigurable
getConfigClass, newConfig, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.cloud.gateway.filter.factory.GatewayFilterFactory
apply, apply, apply, getConfigClass, name, newConfigMethods inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
shortcutFieldPrefix, shortcutType
-
Field Details
-
REGEXP_KEY
Regexp key.- See Also:
-
REPLACEMENT_KEY
Replacement key.- See Also:
-
-
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
-
rewriteHeader
@Deprecated protected void rewriteHeader(org.springframework.web.server.ServerWebExchange exchange, RewriteResponseHeaderGatewayFilterFactory.Config config) Deprecated. -
rewriteHeaders
protected void rewriteHeaders(org.springframework.web.server.ServerWebExchange exchange, RewriteResponseHeaderGatewayFilterFactory.Config config) -
rewriteHeaders
protected List<String> rewriteHeaders(RewriteResponseHeaderGatewayFilterFactory.Config config, List<String> headers)
-