Class RequestHeaderToRequestUriGatewayFilterFactory
java.lang.Object
org.springframework.cloud.gateway.support.AbstractConfigurable<AbstractGatewayFilterFactory.NameConfig>
org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory<AbstractGatewayFilterFactory.NameConfig>
org.springframework.cloud.gateway.filter.factory.AbstractChangeRequestUriGatewayFilterFactory<AbstractGatewayFilterFactory.NameConfig>
org.springframework.cloud.gateway.filter.factory.RequestHeaderToRequestUriGatewayFilterFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, GatewayFilterFactory<AbstractGatewayFilterFactory.NameConfig>, Configurable<AbstractGatewayFilterFactory.NameConfig>, ShortcutConfigurable, org.springframework.context.ApplicationEventPublisherAware
public class RequestHeaderToRequestUriGatewayFilterFactory
extends AbstractChangeRequestUriGatewayFilterFactory<AbstractGatewayFilterFactory.NameConfig>
This filter changes the request uri by a request header.
- Author:
- Toshiaki Maki
-
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 TypeMethodDescriptiondetermineRequestUri(org.springframework.web.server.ServerWebExchange exchange, AbstractGatewayFilterFactory.NameConfig 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
-
Constructor Details
-
RequestHeaderToRequestUriGatewayFilterFactory
public RequestHeaderToRequestUriGatewayFilterFactory()
-
-
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
- Specified by:
applyin interfaceGatewayFilterFactory<AbstractGatewayFilterFactory.NameConfig>- Overrides:
applyin classAbstractChangeRequestUriGatewayFilterFactory<AbstractGatewayFilterFactory.NameConfig>
-
determineRequestUri
protected Optional<URI> determineRequestUri(org.springframework.web.server.ServerWebExchange exchange, AbstractGatewayFilterFactory.NameConfig config) - Specified by:
determineRequestUriin classAbstractChangeRequestUriGatewayFilterFactory<AbstractGatewayFilterFactory.NameConfig>
-