-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to remove a groovy filter from zuul (filterRegistry)? #385
Comments
Anybody know's if this is possible? |
I don't believe there's any functionality for that. |
thx @artgon i will create then, i need in my project. |
putFilter(File file) of FilterLoader wil first remove previous registration of the plugin provided by the given file. Then it will try to register it again. Here the trick comes: If you place in the filters folder a file with the same name but not containing a valid class, zuul will unregister your filter and then will fail to register it again throwing corresponding exception. This is of course not nice, so a better option is to make the filter class "abstract". Zuul will check this before registering the filter again and if it is true, the will silently exit the registration method. |
Currently i put my .groovy zuulfilter in the folder and they are added to my gateway but how to remove this filter dynamically, how can i do that?
looking in the source code FilterLoader.java has putFilter(File file) but not removeFilter(File file).
its possible to remove?
The text was updated successfully, but these errors were encountered: