Interface RespondingContext
-
- All Known Implementing Classes:
RequestProcessingContext
public interface RespondingContextContext that can be used during the data processing for registering response processing stages and/or functions that will be invoked during the response processing to transform the response before it is written to the client.- Author:
- Marek Potociar
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stage<ContainerResponse>createRespondingRoot()(Optionally) create a responder chain from all transformations previously pushed into the context.voidpush(Function<ContainerResponse,ContainerResponse> responseTransformation)Push response transformation function that should be applied.voidpush(ChainableStage<ContainerResponse> stage)Push chainable response transformation stage that should be applied.
-
-
-
Method Detail
-
push
void push(Function<ContainerResponse,ContainerResponse> responseTransformation)
Push response transformation function that should be applied.- Parameters:
responseTransformation- response transformation function.
-
push
void push(ChainableStage<ContainerResponse> stage)
Push chainable response transformation stage that should be applied.- Parameters:
stage- response transformation chainable stage.
-
createRespondingRoot
Stage<ContainerResponse> createRespondingRoot()
(Optionally) create a responder chain from all transformations previously pushed into the context.- Returns:
- created responder chain root or
nullin case of no registered transformations.
-
-