Package com.netflix.zuul.filters
Interface FilterRegistry
- All Known Implementing Classes:
MutableFilterRegistry
public interface FilterRegistry
-
Method Summary
Modifier and TypeMethodDescriptionZuulFilter<?,
?> Collection<ZuulFilter<?,
?>> boolean
Indicates if this registry can be modified.void
put
(String key, ZuulFilter<?, ?> filter) Stores the filter into the registry.ZuulFilter<?,
?> Removes the filter from the registry, and returns it.int
size()
-
Method Details
-
get
-
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
Removes the filter from the registry, and returns it. Returnsnull
no such filter was found. Callers should checkisMutable()
before calling this method.- Throws:
IllegalStateException
- if this registry is not mutable.
-
put
Stores the filter into the registry. If an existing filter was present with the same key, it is removed. Callers should checkisMutable()
before calling this method.- Throws:
IllegalStateException
- if this registry is not mutable.
-