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


public interface RespondingContext

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

Author:
Marek Potociar (marek.potociar at oracle.com)

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

Method Detail

push

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

Parameters:
responseTransformation - response transformation function.

push

void push(ChainableStage<ContainerResponse> stage)
Push chainable response transformation stage that should be applied.

Parameters:
stage - response transformation chainable stage.

createRespondingRoot

Stage<ContainerResponse> createRespondingRoot()
(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-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.