Class AddRequestHeadersIfNotPresentGatewayFilterFactory
java.lang.Object
org.springframework.cloud.gateway.support.AbstractConfigurable<KeyValueConfig>
org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory<KeyValueConfig>
org.springframework.cloud.gateway.filter.factory.AddRequestHeadersIfNotPresentGatewayFilterFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, GatewayFilterFactory<KeyValueConfig>, Configurable<KeyValueConfig>, ShortcutConfigurable, org.springframework.context.ApplicationEventPublisherAware
public class AddRequestHeadersIfNotPresentGatewayFilterFactory
extends AbstractGatewayFilterFactory<KeyValueConfig>
Adds one or more headers to the downstream request’s headers without overriding
previous values. If the header is are already present, value(s) will not be set.
- Author:
- Abel Salgado Romero
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractGatewayFilterFactory
AbstractGatewayFilterFactory.NameConfigNested classes/interfaces inherited from interface ShortcutConfigurable
ShortcutConfigurable.GatewayBeanFactoryResolver, ShortcutConfigurable.GatewayEvaluationContext, ShortcutConfigurable.RestrictivePropertyAccessor, ShortcutConfigurable.ShortcutType -
Field Summary
Fields inherited from interface GatewayFilterFactory
NAME_KEY, VALUE_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(KeyValueConfig 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
toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface GatewayFilterFactory
apply, apply, apply, nameMethods inherited from interface ShortcutConfigurable
shortcutFieldPrefix
-
Constructor Details
-
AddRequestHeadersIfNotPresentGatewayFilterFactory
public AddRequestHeadersIfNotPresentGatewayFilterFactory()
-
-
Method Details
-
apply
-
shortcutType
-
shortcutFieldOrder
Description copied from interface:ShortcutConfigurableReturns hints about the number of args and the order for shortcut parsing.- Returns:
- the list of hints
-
newConfig
- Specified by:
newConfigin interfaceConfigurable<KeyValueConfig>- Specified by:
newConfigin interfaceGatewayFilterFactory<KeyValueConfig>- Overrides:
newConfigin classAbstractConfigurable<KeyValueConfig>
-
getConfigClass
- Specified by:
getConfigClassin interfaceConfigurable<KeyValueConfig>- Specified by:
getConfigClassin interfaceGatewayFilterFactory<KeyValueConfig>- Overrides:
getConfigClassin classAbstractConfigurable<KeyValueConfig>
-