-
- All Known Subinterfaces:
ServerResponse
- All Known Implementing Classes:
MessageBodyContext,MessageBodyReadableContent,MessageBodyReaderContext,MessageBodyWriterContext
public interface MessageBodyFiltersRegistry ofMessageBodyFilters.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MessageBodyFiltersregisterFilter(MessageBodyFilter filter)Registers a message body filter.
-
-
-
Method Detail
-
registerFilter
MessageBodyFilters registerFilter(MessageBodyFilter filter)
Registers a message body filter.The registered filters are applied to form a chain from the first registered to the last registered. The first evaluation of the function transforms the original publisher to a new publisher. Any subsequent evaluation receives the publisher transformed by the last previously registered filter.
- Parameters:
filter- a function to map previously registered or originalPublisherto the new one. If returnsnullthen the result will be ignored.- Returns:
- this instance of
MessageBodyFilters - Throws:
NullPointerException- if parameterfunctionisnull- See Also:
MessageBodyContext.applyFilters(Flow.Publisher)
-
-