public interface IDataPolicy extends IPolicy
IPolicy) are only given a crack at the ServiceRequest
and ServiceResponse. If this interface is implemented, then
the policy also gets a crack at the request body stream and response
body stream. This is useful for things like URL rewriting policies.| Modifier and Type | Method and Description |
|---|---|
IReadWriteStream<io.apiman.gateway.engine.beans.ServiceRequest> |
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> |
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.
|
apply, apply, parseConfigurationIReadWriteStream<io.apiman.gateway.engine.beans.ServiceRequest> getRequestDataHandler(io.apiman.gateway.engine.beans.ServiceRequest request, IPolicyContext context)
request - the requestcontext - the contextIReadWriteStream<io.apiman.gateway.engine.beans.ServiceResponse> getResponseDataHandler(io.apiman.gateway.engine.beans.ServiceResponse response, IPolicyContext context)
response - the responsecontext - the contextCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.