- All Known Subinterfaces:
ServerResponse
- All Known Implementing Classes:
MessageBodyContext
,MessageBodyReadableContent
,MessageBodyReaderContext
,MessageBodyWriterContext
public interface MessageBodyFilters
Registry of
MessageBodyFilters
.-
Method Summary
Modifier and TypeMethodDescriptionregisterFilter
(MessageBodyFilter filter) Registers a message body filter.
-
Method Details
-
registerFilter
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 originalPublisher
to the new one. If returnsnull
then the result will be ignored.- Returns:
- this instance of
MessageBodyFilters
- Throws:
NullPointerException
- if parameterfunction
isnull
- See Also:
-