Add next(ServerWebExchange exchange, List<PluginConfig> pcs) method

This commit is contained in:
lancer.hong
2021-09-12 16:10:22 +08:00
parent 9c30b9f9e2
commit 76ecd1d36e

View File

@@ -84,4 +84,11 @@ public final class FizzPluginFilterChain {
return chain.filter(exchange);
}
}
public static Mono<Void> next(ServerWebExchange exchange, List<PluginConfig> pcs) {
Iterator<PluginConfig> it = pcs.iterator();
Map<String, Object> attris = exchange.getAttributes();
attris.put(pluginConfigsIt, it);
return next(exchange);
}
}