Class FilterInvokers
java.lang.Object
io.kroxylicious.proxy.internal.filter.FilterInvokers
Factory for FilterInvokers. The intention is to keep the Invoker implementations
as private as we can, so that invocation is a framework concern.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FilterInvokerarrayInvoker(io.kroxylicious.proxy.filter.Filter filter) Create an invoker for this filter that avoids instanceof when deciding if the filter should be consulted/handle messages.static FilterInvokerAn invoker that does not handle any requests or responses
-
Method Details
-
arrayInvoker
Create an invoker for this filter that avoids instanceof when deciding if the filter should be consulted/handle messages. Instead, it stores an invoker for each targeted request-type and response-type in an array.- Parameters:
filter- the filter- Returns:
- an invoker for the filter
-
handleNothingInvoker
An invoker that does not handle any requests or responses- Returns:
- invoker
-