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.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.
-
Field Details
-
rootStage
-
-
Constructor Details
-
DefaultRespondingContext
DefaultRespondingContext()
-
-
Method Details
-
push
Description copied from interface:RespondingContextPush response transformation function that should be applied.- Specified by:
pushin interfaceRespondingContext- Parameters:
responseTransformation- response transformation function.
-
push
Description copied from interface:RespondingContextPush chainable response transformation stage that should be applied.- Specified by:
pushin 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:
createRespondingRootin interfaceRespondingContext- Returns:
- created responder chain root or
nullin case of no registered transformations.
-