@FunctionalInterface
public interface StreamingHttpConnectionFilterFactory
StreamingHttpConnectionFilter
.Modifier and Type | Method and Description |
---|---|
default StreamingHttpConnectionFilterFactory |
append(StreamingHttpConnectionFilterFactory before)
Returns a composed function that first applies the
before function to its input, and then applies
this function to the result. |
StreamingHttpConnectionFilter |
create(FilterableStreamingHttpConnection connection)
Create a
StreamingHttpConnectionFilter using the provided FilterableStreamingHttpConnection . |
StreamingHttpConnectionFilter create(FilterableStreamingHttpConnection connection)
StreamingHttpConnectionFilter
using the provided FilterableStreamingHttpConnection
.connection
- FilterableStreamingHttpConnection
to filterStreamingHttpConnectionFilter
using the provided FilterableStreamingHttpConnection
.default StreamingHttpConnectionFilterFactory append(StreamingHttpConnectionFilterFactory 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 connection wrapped by this filter chain the order of invocation of these filters will be:
filter1 => filter2 => filter3 => connection
before
- the function to apply before this function is appliedbefore
function and then applies this function