Interface FilterRegistry

All Known Implementing Classes:
MutableFilterRegistry

public interface FilterRegistry
  • Method Details

    • get

      @Nullable ZuulFilter<?,?> get(String key)
    • size

      int size()
    • getAllFilters

      Collection<ZuulFilter<?,?>> getAllFilters()
    • isMutable

      boolean isMutable()
      Indicates if this registry can be modified. Implementations should not change the return; they return the same value each time.
    • remove

      @Nullable ZuulFilter<?,?> remove(String key)
      Removes the filter from the registry, and returns it. Returns null no such filter was found. Callers should check isMutable() before calling this method.
      Throws:
      IllegalStateException - if this registry is not mutable.
    • put

      void put(String key, ZuulFilter<?,?> filter)
      Stores the filter into the registry. If an existing filter was present with the same key, it is removed. Callers should check isMutable() before calling this method.
      Throws:
      IllegalStateException - if this registry is not mutable.