Class AbstractChainableStage<DATA>
java.lang.Object
org.glassfish.jersey.process.internal.AbstractChainableStage<DATA>
- Type Parameters:
DATA
- processed data type.
- All Implemented Interfaces:
ChainableStage<DATA>
,Stage<DATA>
Abstract chainable linear acceptor.
Implements support for managing the default next stage value.
- Author:
- Marek Potociar
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.jersey.process.internal.Stage
Stage.Builder<DATA>, Stage.Continuation<DATA>
-
Constructor Summary
ModifierConstructorDescriptionprotected
Create a new chainable acceptor with no next stage set.protected
AbstractChainableStage
(Stage<DATA> nextStage) Create a new chainable acceptor with an initialized default next stage value. -
Method Summary
Modifier and TypeMethodDescriptionGet the default next stage currently configured on the acceptor.final void
setDefaultNext
(Stage<DATA> next) Set the default next stage that should be returned from this stage after it has been invoked by default.
-
Constructor Details
-
AbstractChainableStage
protected AbstractChainableStage()Create a new chainable acceptor with no next stage set. -
AbstractChainableStage
Create a new chainable acceptor with an initialized default next stage value.- Parameters:
nextStage
- default next stage.
-
-
Method Details
-
setDefaultNext
Description copied from interface:ChainableStage
Set the default next stage that should be returned from this stage after it has been invoked by default.- Specified by:
setDefaultNext
in interfaceChainableStage<DATA>
- Parameters:
next
- the next default stage in the chain.
-
getDefaultNext
Get the default next stage currently configured on the acceptor.- Returns:
- default next stage currently configured on the acceptor.
-