public class RequestChain extends Chain<io.apiman.gateway.engine.beans.ServiceRequest>
bodyHandler, endHandler, finished, headHandler| Constructor and Description |
|---|
RequestChain(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.ServiceRequest> |
getServiceHandler(IPolicy policy)
Gets the service handler for the policy.
|
Iterator<PolicyWithConfiguration> |
iterator() |
abort, chainPolicyHandlers, doApply, doFailure, end, getContext, getHead, getPolicies, handleHead, policyErrorHandler, policyFailureHandler, throwError, writebodyHandler, endHandler, handleBody, handleEnd, headHandler, isFinishedpublic RequestChain(List<PolicyWithConfiguration> policies, IPolicyContext context)
policies - context - public Iterator<PolicyWithConfiguration> iterator()
Iterable.iterator()protected IReadWriteStream<io.apiman.gateway.engine.beans.ServiceRequest> getServiceHandler(IPolicy policy)
ChaingetServiceHandler in class Chain<io.apiman.gateway.engine.beans.ServiceRequest>Chain.getServiceHandler(io.apiman.gateway.engine.policy.IPolicy)protected void applyPolicy(PolicyWithConfiguration policy, IPolicyContext context)
ChainapplyPolicy in class Chain<io.apiman.gateway.engine.beans.ServiceRequest>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.