Class Stages.StageChainBuilder<DATA>
java.lang.Object
org.glassfish.jersey.process.internal.Stages.StageChainBuilder<DATA>
- All Implemented Interfaces:
Stage.Builder<DATA>
- Enclosing class:
Stages
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateStageChainBuilder(Function<DATA, DATA> transformation) privateStageChainBuilder(ChainableStage<DATA> rootStage) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddTailStage(Stage<DATA> lastStage) build()Build a stage chain.Add a terminal stage to the stage chain and build the chain.convertTransformations(Stage<DATA> successor) Add a transformation function as a next stage to the stage chain.to(ChainableStage<DATA> stage) Add a newchainable stageas a next stage to the stage chain.
-
Field Details
-
transformations
-
rootStage
-
lastStage
-
-
Constructor Details
-
StageChainBuilder
-
StageChainBuilder
-
-
Method Details
-
to
Description copied from interface:Stage.BuilderAdd a transformation function as a next stage to the stage chain.The order of the
to(...)method invocations matches the order of the stage execution at runtime.- Specified by:
toin interfaceStage.Builder<DATA>- Parameters:
transformation- a transformation function to be added as a next stage to the stage chain.- Returns:
- updated builder instance.
-
to
Description copied from interface:Stage.BuilderAdd a newchainable stageas a next stage to the stage chain.The order of the
to(...)method invocations matches the order of the stage execution at runtime. A subsequent call to ato(...)method will automatically invoke theChainableStage.setDefaultNext(Stage)method on the chainable stage.- Specified by:
toin interfaceStage.Builder<DATA>- Parameters:
stage- a chainable stage to be added as a next stage to the stage chain.- Returns:
- updated builder instance.
-
addTailStage
-
build
Description copied from interface:Stage.BuilderAdd a terminal stage to the stage chain and build the chain.- Specified by:
buildin interfaceStage.Builder<DATA>- Parameters:
stage- last stage to be added to the stage chain.- Returns:
- built stage chain.
-
build
Description copied from interface:Stage.BuilderBuild a stage chain.- Specified by:
buildin interfaceStage.Builder<DATA>- Returns:
- built acceptor chain.
-
convertTransformations
-