@Internal @Singleton public class DefaultHttpClientFilterResolver extends Object implements HttpClientFilterResolver<ClientFilterResolutionContext>
HttpFilterResolver.FilterEntry<F>
Constructor and Description |
---|
DefaultHttpClientFilterResolver(AnnotationMetadataResolver annotationMetadataResolver,
List<HttpClientFilter> clientFilters)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
List<HttpFilterResolver.FilterEntry<HttpClientFilter>> |
resolveFilterEntries(ClientFilterResolutionContext context)
Resolves the initial list of filters.
|
List<HttpClientFilter> |
resolveFilters(HttpRequest<?> request,
List<HttpFilterResolver.FilterEntry<HttpClientFilter>> filterEntries)
Returns which filters should apply for the given request.
|
public DefaultHttpClientFilterResolver(AnnotationMetadataResolver annotationMetadataResolver, List<HttpClientFilter> clientFilters)
annotationMetadataResolver
- The annotation metadata resolverclientFilters
- All client filterspublic List<HttpFilterResolver.FilterEntry<HttpClientFilter>> resolveFilterEntries(ClientFilterResolutionContext context)
HttpFilterResolver
resolveFilterEntries
in interface HttpFilterResolver<HttpClientFilter,ClientFilterResolutionContext>
context
- The contextpublic List<HttpClientFilter> resolveFilters(HttpRequest<?> request, List<HttpFilterResolver.FilterEntry<HttpClientFilter>> filterEntries)
HttpFilterResolver
resolveFilters
in interface HttpFilterResolver<HttpClientFilter,ClientFilterResolutionContext>
request
- The requestfilterEntries
- the filter entries