Interface HttpFilterResolver<F extends HttpFilter,T extends AnnotationMetadataProvider>

Type Parameters:
F - The filter type
T - The resolution context type
All Known Subinterfaces:
HttpClientFilterResolver<T>, HttpServerFilterResolver<T>
All Known Implementing Classes:
DefaultHttpClientFilterResolver, DefaultRouter

public interface HttpFilterResolver<F extends HttpFilter,T extends AnnotationMetadataProvider>
A contract for resolving filters for a given request.
Since:
1.3.0
Author:
James Kleeh, graemerocher
  • Method Details

    • resolveFilterEntries

      List<HttpFilterResolver.FilterEntry<F>> resolveFilterEntries(T context)
      Resolves the initial list of filters.
      Parameters:
      context - The context
      Returns:
      The filters
      Since:
      2.0
    • resolveFilters

      List<F> resolveFilters(HttpRequest<?> request, List<HttpFilterResolver.FilterEntry<F>> filterEntries)
      Returns which filters should apply for the given request.
      Parameters:
      request - The request
      filterEntries - the filter entries
      Returns:
      The list of filters