Filter Tools

A collection of classes for developers who are working with Servlet Filters.

Get Filter Tools

Optional Filter

Combine a filter and a Predicate or Hamcrest matcher. The filter is executed if the predicate or the matchers matches and skipped otherwise.

Encased Filters

Encase multiple filters into a single filter.

Filter with FilterChain

Merge a Filter and a FilterChain into a new FilterChain.

NoOpFilter

A null object for the filter interface.

HTTP Filter

A base class for filters that need HttpServletRequest or HttpServletResponse.

Filter Action

Small pieces of work that are executed by a filter.

DisableEncodeUrlFilter

Disable the encodeUrl and encodeRedirectUrl methods of HttpServletResponse.