Class AbstractChangeRequestUriGatewayFilterFactory<T>
- java.lang.Object
-
- org.springframework.cloud.gateway.support.AbstractConfigurable<C>
-
- org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory<T>
-
- org.springframework.cloud.gateway.filter.factory.AbstractChangeRequestUriGatewayFilterFactory<T>
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,GatewayFilterFactory<T>
,Configurable<T>
,ShortcutConfigurable
,org.springframework.context.ApplicationEventPublisherAware
- Direct Known Subclasses:
RequestHeaderToRequestUriGatewayFilterFactory
public abstract class AbstractChangeRequestUriGatewayFilterFactory<T> extends AbstractGatewayFilterFactory<T>
This filter changes the request uri by#determineRequestUri(ServerWebExchange, T)
logic.- Author:
- Toshiaki Maki
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory
AbstractGatewayFilterFactory.NameConfig
-
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.factory.GatewayFilterFactory
NAME_KEY, VALUE_KEY
-
-
Constructor Summary
Constructors Constructor Description AbstractChangeRequestUriGatewayFilterFactory(Class<T> clazz)
AbstractChangeRequestUriGatewayFilterFactory(Class<T> clazz, int order)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description GatewayFilter
apply(T config)
protected abstract Optional<URI>
determineRequestUri(org.springframework.web.server.ServerWebExchange exchange, T config)
-
Methods inherited from class org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory
getPublisher, setApplicationEventPublisher
-
Methods inherited from class org.springframework.cloud.gateway.support.AbstractConfigurable
getConfigClass, newConfig, 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.filter.factory.GatewayFilterFactory
apply, apply, apply, getConfigClass, name, newConfig
-
Methods inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
shortcutFieldOrder, shortcutFieldPrefix, shortcutType
-
-
-
-
Method Detail
-
determineRequestUri
protected abstract Optional<URI> determineRequestUri(org.springframework.web.server.ServerWebExchange exchange, T config)
-
apply
public GatewayFilter apply(T config)
-
-