org.glassfish.jersey.process.internal
Class Stages.LinkedStage<DATA>
java.lang.Object
org.glassfish.jersey.process.internal.Stages.LinkedStage<DATA>
- Type Parameters:
DATA - processed data type.
- All Implemented Interfaces:
- Stage<DATA>
- Enclosing class:
- Stages
public static class Stages.LinkedStage<DATA>
- extends Object
- implements Stage<DATA>
Linked linear stage implementation.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Stages.LinkedStage
public Stages.LinkedStage(com.google.common.base.Function<DATA,DATA> transformation,
Stage<DATA> nextStage)
- Create a new stage that will return the supplied stage in the
continuation.
- Parameters:
transformation - Request transformation function to be applied in the stage.nextStage - next stage returned in the continuation.
Stages.LinkedStage
public Stages.LinkedStage(com.google.common.base.Function<DATA,DATA> transformation)
- Create a new terminal stage .
- Parameters:
transformation - Request transformation function to be applied in the stage.
apply
public Stage.Continuation<DATA> apply(DATA data)
- Description copied from interface:
Stage
- Performs a data processing task and returns the processed data together with
a
processing continuation.
- Specified by:
apply in interface Stage<DATA>
- Parameters:
data - data to be transformed.
- Returns:
- a processing continuation.
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.