Class DefaultRespondingContext
java.lang.Object
org.glassfish.jersey.server.internal.process.DefaultRespondingContext
- All Implemented Interfaces:
RespondingContext
Default implementation of the request-scoped
responding context
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(Optionally) create a responder chain from all transformations previously pushed into the context.void
push
(Function<ContainerResponse, ContainerResponse> responseTransformation) Push response transformation function that should be applied.void
push
(ChainableStage<ContainerResponse> stage) Push chainable response transformation stage that should be applied.
-
Field Details
-
rootStage
-
-
Constructor Details
-
DefaultRespondingContext
DefaultRespondingContext()
-
-
Method Details
-
push
Description copied from interface:RespondingContext
Push response transformation function that should be applied.- Specified by:
push
in interfaceRespondingContext
- Parameters:
responseTransformation
- response transformation function.
-
push
Description copied from interface:RespondingContext
Push chainable response transformation stage that should be applied.- Specified by:
push
in interfaceRespondingContext
- Parameters:
stage
- response transformation chainable stage.
-
createRespondingRoot
Description copied from interface:RespondingContext
(Optionally) create a responder chain from all transformations previously pushed into the context.- Specified by:
createRespondingRoot
in interfaceRespondingContext
- Returns:
- created responder chain root or
null
in case of no registered transformations.
-