org.glassfish.jersey.process.internal
Class DefaultRespondingContext
java.lang.Object
org.glassfish.jersey.process.internal.DefaultRespondingContext
- All Implemented Interfaces:
- ResponseProcessor.RespondingContext
public class DefaultRespondingContext
- extends Object
- implements ResponseProcessor.RespondingContext
Default implementation of the request-scoped
responding context.
- Author:
- Marek Potociar (marek.potociar at oracle.com)
|
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultRespondingContext
public DefaultRespondingContext()
push
public void push(com.google.common.base.Function<javax.ws.rs.core.Response,javax.ws.rs.core.Response> responseTransformation)
- Description copied from interface:
ResponseProcessor.RespondingContext
- Push response transformation function that should be applied
- Specified by:
push in interface ResponseProcessor.RespondingContext
- Parameters:
responseTransformation - response transformation function.
createStageChain
public com.google.common.base.Optional<Responder> createStageChain()
- Description copied from interface:
ResponseProcessor.RespondingContext
- Create an (
optional responder chain from all transformation
previously pushed into the context.
- Specified by:
createStageChain in interface ResponseProcessor.RespondingContext
- 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.