public class SaveSessionGatewayFilterFactory extends AbstractGatewayFilterFactory
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.AbstractGatewayFilterFactory.NameConfig
ShortcutConfigurable.ShortcutType
NAME_KEY, VALUE_KEY
Constructor and Description |
---|
SaveSessionGatewayFilterFactory() |
Modifier and Type | Method and Description |
---|---|
GatewayFilter |
apply(Object config) |
getPublisher, setApplicationEventPublisher
getConfigClass, newConfig, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
apply, apply, apply, getConfigClass, mutate, name, newConfig
getValue, normalizeKey, shortcutFieldOrder, shortcutFieldPrefix, shortcutType
public GatewayFilter apply(Object config)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.