| Package | Description |
|---|---|
| io.apiman.gateway.engine.impl | |
| io.apiman.gateway.engine.policy |
| Constructor and Description |
|---|
ServiceRequestExecutorImpl(io.apiman.gateway.engine.beans.ServiceRequest serviceRequest,
IAsyncResultHandler<IEngineResult> resultHandler,
io.apiman.gateway.engine.beans.Service service,
IPolicyContext context,
List<io.apiman.gateway.engine.beans.Policy> policies,
IPolicyFactory policyFactory,
IConnectorFactory connectorFactory)
Constructs a new
ServiceRequestExecutorImpl. |
| Modifier and Type | Class and Description |
|---|---|
class |
PolicyContextImpl
A simple implementation of a
IPolicyContext. |
| Modifier and Type | Method and Description |
|---|---|
protected IPolicyContext |
Chain.getContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
IPolicy.apply(io.apiman.gateway.engine.beans.ServiceRequest request,
IPolicyContext context,
Object config,
IPolicyChain<io.apiman.gateway.engine.beans.ServiceRequest> chain)
Applies a policy upon a
ServiceRequest based on information
included in the request itself in addition to its context and configuration. |
void |
IPolicy.apply(io.apiman.gateway.engine.beans.ServiceResponse response,
IPolicyContext context,
Object config,
IPolicyChain<io.apiman.gateway.engine.beans.ServiceResponse> chain)
Applies a policy upon a
ServiceResponse based on information
included in the response itself in addition to its context and configuration. |
protected void |
ResponseChain.applyPolicy(PolicyWithConfiguration policy,
IPolicyContext context) |
protected void |
RequestChain.applyPolicy(PolicyWithConfiguration policy,
IPolicyContext context) |
protected abstract void |
Chain.applyPolicy(PolicyWithConfiguration policy,
IPolicyContext context)
Called to apply the given policy to the service object (request or response).
|
IReadWriteStream<io.apiman.gateway.engine.beans.ServiceRequest> |
IDataPolicy.getRequestDataHandler(io.apiman.gateway.engine.beans.ServiceRequest request,
IPolicyContext context)
This method should return a stream that will be used when piping the request data
from the client to the back-end service.
|
IReadWriteStream<io.apiman.gateway.engine.beans.ServiceResponse> |
IDataPolicy.getResponseDataHandler(io.apiman.gateway.engine.beans.ServiceResponse response,
IPolicyContext context)
This method should return a stream that will be used when piping the response data
from the back-end service to the client.
|
| Constructor and Description |
|---|
Chain(List<PolicyWithConfiguration> policies,
IPolicyContext context)
Constructor.
|
RequestChain(List<PolicyWithConfiguration> policies,
IPolicyContext context)
Constructor.
|
ResponseChain(List<PolicyWithConfiguration> policies,
IPolicyContext context)
Constructor.
|
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.