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