org.glassfish.jersey.process.internal
Interface ResponseProcessor.RespondingContext

Enclosing class:
ResponseProcessor

public static interface ResponseProcessor.RespondingContext

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
 com.google.common.base.Optional<Responder> createStageChain()
          Create an (optional responder chain from all transformation previously pushed into the context.
 void push(com.google.common.base.Function<Response,Response> responseTransformation)
          Push response transformation function that should be applied.
 

Method Detail

push

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

Parameters:
responseTransformation - response transformation function.

createStageChain

com.google.common.base.Optional<Responder> createStageChain()
Create an (optional responder chain from all transformation previously pushed into the context.

Returns:
created responder chain or absent value in case of no registered transformations.


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