@FunctionalInterface
public interface StreamingHttpClientFilterFactory
StreamingHttpClientFilter
.Modifier and Type | Method and Description |
---|---|
default StreamingHttpClientFilterFactory |
append(StreamingHttpClientFilterFactory before)
Returns a composed function that first applies the
before function to its input, and then applies
this function to the result. |
default <U> MultiAddressHttpClientFilterFactory<U> |
asMultiAddressClientFilter()
Returns a
MultiAddressHttpClientFilterFactory that adapts from a
StreamingHttpClientFilterFactory . |
StreamingHttpClientFilter |
create(FilterableStreamingHttpClient client)
Creates a
StreamingHttpClientFilter using the provided StreamingHttpClientFilter . |
StreamingHttpClientFilter create(FilterableStreamingHttpClient client)
StreamingHttpClientFilter
using the provided StreamingHttpClientFilter
.client
- FilterableStreamingHttpClient
to filterStreamingHttpClientFilter
using the provided StreamingHttpClientFilter
.default StreamingHttpClientFilterFactory append(StreamingHttpClientFilterFactory before)
before
function to its input, and then applies
this function to the result.
The order of execution of these filters are in order of append. If 3 filters are added as follows:
filter1.append(filter2).append(filter3)making a request to a client wrapped by this filter chain the order of invocation of these filters will be:
filter1 => filter2 => filter3 => client
before
- the function to apply before this function is appliedbefore
function and then applies this functiondefault <U> MultiAddressHttpClientFilterFactory<U> asMultiAddressClientFilter()
MultiAddressHttpClientFilterFactory
that adapts from a
StreamingHttpClientFilterFactory
.U
- the type of address before resolution (unresolved address).MultiAddressHttpClientFilterFactory
function