Class RedirectToGatewayFilterFactory
- java.lang.Object
-
- org.springframework.cloud.gateway.support.AbstractConfigurable<C>
-
- org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory<RedirectToGatewayFilterFactory.Config>
-
- org.springframework.cloud.gateway.filter.factory.RedirectToGatewayFilterFactory
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,GatewayFilterFactory<RedirectToGatewayFilterFactory.Config>,Configurable<RedirectToGatewayFilterFactory.Config>,ShortcutConfigurable,org.springframework.context.ApplicationEventPublisherAware
public class RedirectToGatewayFilterFactory extends AbstractGatewayFilterFactory<RedirectToGatewayFilterFactory.Config>
- Author:
- Spencer Gibb
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRedirectToGatewayFilterFactory.Config-
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 Modifier and Type Field Description static StringSTATUS_KEYStatus key.static StringURL_KEYURL key.-
Fields inherited from interface org.springframework.cloud.gateway.filter.factory.GatewayFilterFactory
NAME_KEY, VALUE_KEY
-
-
Constructor Summary
Constructors Constructor Description RedirectToGatewayFilterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GatewayFilterapply(String statusString, String urlString)GatewayFilterapply(RedirectToGatewayFilterFactory.Config config)GatewayFilterapply(HttpStatusHolder httpStatus, URI uri)GatewayFilterapply(org.springframework.http.HttpStatus httpStatus, URI uri)List<String>shortcutFieldOrder()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, 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
shortcutFieldPrefix, shortcutType
-
-
-
-
Field Detail
-
STATUS_KEY
public static final String STATUS_KEY
Status key.- See Also:
- Constant Field Values
-
URL_KEY
public static final String URL_KEY
URL key.- See Also:
- Constant Field Values
-
-
Method Detail
-
shortcutFieldOrder
public List<String> shortcutFieldOrder()
Description copied from interface:ShortcutConfigurableReturns hints about the number of args and the order for shortcut parsing.- Returns:
- the list of hints
-
apply
public GatewayFilter apply(RedirectToGatewayFilterFactory.Config config)
-
apply
public GatewayFilter apply(String statusString, String urlString)
-
apply
public GatewayFilter apply(org.springframework.http.HttpStatus httpStatus, URI uri)
-
apply
public GatewayFilter apply(HttpStatusHolder httpStatus, URI uri)
-
-