...
Applications now support multiple decorators for header responses. This simplifies adding a decorator, since you no longer have to remind to keep a ResourceAggregator around:
Code Block | ||||
---|---|---|---|---|
| ||||
// deprecatedimproved API setHeaderResponseDecoratorgetHeaderResponseDecorators().add(response -> new ResourceAggregator(new CustomResponse(response)));; |
With the deprecated API you were required to keep a ResourceAggregator around. Its usage is not recommended, since it prevents usage of CSP (see above):
Code Block | ||||
---|---|---|---|---|
| ||||
// improveddeprecated API getHeaderResponseDecoratorssetHeaderResponseDecorator().add(response -> new ResourceAggregator(new CustomResponse(response))); |
Move ConversationPropagator.getPage
...