filter

abstract fun filter(context: T, next: FilterChain<T>): Mono<Void>

Implements the filter logic.

This method receives a context object and a filter chain. After executing the filter logic, it must call the filter chain's next method to continue executing the next filter in the chain.

Return

a Mono of Void indicating the completion of the filter operation

Parameters

context

the current context object for the filter operation

next

the filter chain object to call the next filter in the chain