Package io.micronaut.http.filter
Interface HttpFilterResolver<T extends AnnotationMetadataProvider>
- Type Parameters:
T
- The resolution context type
- All Known Subinterfaces:
HttpClientFilterResolver<T>
,HttpServerFilterResolver<T>
- All Known Implementing Classes:
DefaultHttpClientFilterResolver
,DefaultRouter
public interface HttpFilterResolver<T extends AnnotationMetadataProvider>
A contract for resolving filters for a given request.
- Since:
- 1.3.0
- Author:
- James Kleeh, graemerocher
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A resolved filter entry. -
Method Summary
Modifier and TypeMethodDescriptionresolveFilterEntries
(T context) Resolves the initial list of filters.resolveFilters
(HttpRequest<?> request, List<HttpFilterResolver.FilterEntry> filterEntries) Returns which filters should apply for the given request.
-
Method Details
-
resolveFilterEntries
Resolves the initial list of filters.- Parameters:
context
- The context- Returns:
- The filters
- Since:
- 2.0
-
resolveFilters
List<GenericHttpFilter> resolveFilters(HttpRequest<?> request, List<HttpFilterResolver.FilterEntry> filterEntries) Returns which filters should apply for the given request.- Parameters:
request
- The requestfilterEntries
- the filter entries- Returns:
- The list of filters
-