Class SaveSessionGatewayFilterFactory
java.lang.Object
org.springframework.cloud.gateway.support.AbstractConfigurable<Object>
org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory<Object>
org.springframework.cloud.gateway.filter.factory.SaveSessionGatewayFilterFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, GatewayFilterFactory<Object>, Configurable<Object>, ShortcutConfigurable, org.springframework.context.ApplicationEventPublisherAware
Save the current
WebSession before executing the rest of the
GatewayFilterChain.
Filter is very useful for situation where the WebSession is lazy (e.g. Spring Session
MongoDB) and making a remote call requires that WebSession.save() be called
before the remote call is made.- Author:
- Greg Turnquist
-
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
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
shortcutFieldOrder, shortcutFieldPrefix, shortcutType
-
Constructor Details
-
SaveSessionGatewayFilterFactory
public SaveSessionGatewayFilterFactory()
-
-
Method Details
-
apply
-