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

All Known Implementing Classes:
DefaultRespondingContext
Enclosing class:
ResponseProcessor

public static interface ResponseProcessor.RespondingContext

Injectable context that can be used during the data processing for registering Stage instances 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<javax.ws.rs.core.Response,javax.ws.rs.core.Response> responseTransformation)
          Push response transformation function that should be applied
 

Method Detail

push

void push(com.google.common.base.Function<javax.ws.rs.core.Response,javax.ws.rs.core.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.