Package | Description |
---|---|
org.glassfish.jersey.process.internal |
Common Jersey internal processing classes.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ChainableStage<DATA>
Linear acceptor that can be composed into a chain.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractChainableStage<DATA>
Abstract chainable linear acceptor.
|
static class |
Stages.LinkedStage<DATA>
Linked linear stage implementation.
|
Modifier and Type | Method and Description |
---|---|
static <DATA,RESULT> |
Stages.asStage(Inflector<DATA,RESULT> inflector)
Creates a terminal
Stage that implements Inflecting
interface and returns the provided Inflector instance
when the Inflecting.inflector() method is called. |
Stage<DATA> |
Stage.Builder.build()
Build a stage chain.
|
Stage<DATA> |
Stage.Builder.build(Stage<DATA> terminal)
Add a terminal stage to the stage chain and build the chain.
|
Stage<DATA> |
AbstractChainableStage.getDefaultNext()
Get the default next stage currently configured on the acceptor.
|
Stage<DATA> |
Stage.Continuation.next()
Get the stage to be invoked next or
null if no next stage is
present . |
Modifier and Type | Method and Description |
---|---|
Stage<DATA> |
Stage.Builder.build(Stage<DATA> terminal)
Add a terminal stage to the stage chain and build the chain.
|
static <DATA> Stage.Continuation<DATA> |
Stage.Continuation.of(DATA result,
Stage<DATA> next)
Create a continuation from the processed data result and the stage
to be invoked next.
|
static <DATA> DATA |
Stages.process(DATA data,
Stage<DATA> rootStage)
Run the data through a chain of stages identified by the root stage.
|
static <DATA,RESULT,T extends Inflector<DATA,RESULT>> |
Stages.process(DATA data,
Stage<DATA> rootStage,
org.glassfish.jersey.internal.util.collection.Ref<T> inflectorRef)
Run the data through a chain of stages identified by the root stage.
|
void |
AbstractChainableStage.setDefaultNext(Stage<DATA> next) |
void |
ChainableStage.setDefaultNext(Stage<DATA> next)
Set the default next stage that should be returned from this
stage after it has been invoked by default.
|
Constructor and Description |
---|
AbstractChainableStage(Stage<DATA> nextStage)
Create a new chainable acceptor with an initialized default
next stage value.
|
LinkedStage(Function<DATA,DATA> transformation,
Stage<DATA> nextStage)
Create a new stage that will return the supplied stage in the
continuation.
|
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.