org.glassfish.jersey.process.internal
Interface ResponseProcessor.RespondingContext<DATA>

Type Parameters:
DATA - processed data type.
Enclosing class:
ResponseProcessor<DATA>

public static interface ResponseProcessor.RespondingContext<DATA>

Injectable context that can be used during the data processing for registering response processing functions that will be invoked during the response processing.


Method Summary
 Stage<DATA> createResponderRoot()
          (Optionally) create a responder chain from all transformations previously pushed into the context.
 void push(com.google.common.base.Function<DATA,DATA> responseTransformation)
          Push response transformation function that should be applied.
 

Method Detail

push

void push(com.google.common.base.Function<DATA,DATA> responseTransformation)
Push response transformation function that should be applied.

Parameters:
responseTransformation - response transformation function.

createResponderRoot

Stage<DATA> createResponderRoot()
(Optionally) create a responder chain from all transformations previously pushed into the context.

Returns:
created responder chain root or null in case of no registered transformations.


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.