public class ResponseChain extends Chain<io.apiman.gateway.engine.beans.ServiceResponse>
bodyHandler, endHandler, finished, headHandler| Constructor and Description |
|---|
ResponseChain(List<PolicyWithConfiguration> policies,
IPolicyContext context)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyPolicy(PolicyWithConfiguration policy,
IPolicyContext context)
Called to apply the given policy to the service object (request or response).
|
protected IReadWriteStream<io.apiman.gateway.engine.beans.ServiceResponse> |
getServiceHandler(IPolicy policy,
Object config)
Gets the service handler for the policy.
|
Iterator<PolicyWithConfiguration> |
iterator() |
abort, chainPolicyHandlers, doApply, doFailure, doSkip, end, getContext, getHead, getPolicies, handleHead, policyErrorHandler, policyFailureHandler, throwError, writebodyHandler, endHandler, handleBody, handleEnd, headHandler, isFinishedpublic ResponseChain(List<PolicyWithConfiguration> policies, IPolicyContext context)
policies - the policiescontext - the contextpublic Iterator<PolicyWithConfiguration> iterator()
Iterable.iterator()protected IReadWriteStream<io.apiman.gateway.engine.beans.ServiceResponse> getServiceHandler(IPolicy policy, Object config)
ChaingetServiceHandler in class Chain<io.apiman.gateway.engine.beans.ServiceResponse>Chain.getServiceHandler(io.apiman.gateway.engine.policy.IPolicy, java.lang.Object)protected void applyPolicy(PolicyWithConfiguration policy, IPolicyContext context)
ChainapplyPolicy in class Chain<io.apiman.gateway.engine.beans.ServiceResponse>Chain.applyPolicy(io.apiman.gateway.engine.policy.PolicyWithConfiguration, io.apiman.gateway.engine.policy.IPolicyContext)Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.