Package com.netflix.zuul.filters
Class MutableFilterRegistry
java.lang.Object
com.netflix.zuul.filters.MutableFilterRegistry
- All Implemented Interfaces:
FilterRegistry
-
Constructor Summary
Constructors -
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()
-
Constructor Details
-
MutableFilterRegistry
public MutableFilterRegistry()
-
-
Method Details
-
remove
Description copied from interface:FilterRegistry
Removes the filter from the registry, and returns it. Returnsnull
no such filter was found. Callers should checkFilterRegistry.isMutable()
before calling this method.- Specified by:
remove
in interfaceFilterRegistry
-
get
- Specified by:
get
in interfaceFilterRegistry
-
put
Description copied from interface:FilterRegistry
Stores the filter into the registry. If an existing filter was present with the same key, it is removed. Callers should checkFilterRegistry.isMutable()
before calling this method.- Specified by:
put
in interfaceFilterRegistry
-
size
public int size()- Specified by:
size
in interfaceFilterRegistry
-
getAllFilters
- Specified by:
getAllFilters
in interfaceFilterRegistry
-
isMutable
public boolean isMutable()Description copied from interface:FilterRegistry
Indicates if this registry can be modified. Implementations should not change the return; they return the same value each time.- Specified by:
isMutable
in interfaceFilterRegistry
-