public interface IPolicy
| Modifier and Type | Method and Description |
|---|---|
void |
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 |
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. |
Object |
parseConfiguration(String jsonConfiguration)
Parses the JSON configuration into a policy specific configuration object type.
|
Object parseConfiguration(String jsonConfiguration) throws io.apiman.gateway.engine.beans.exceptions.ConfigurationParseException
jsonConfiguration - io.apiman.gateway.engine.beans.exceptions.ConfigurationParseExceptionvoid apply(io.apiman.gateway.engine.beans.ServiceRequest request,
IPolicyContext context,
Object config,
IPolicyChain<io.apiman.gateway.engine.beans.ServiceRequest> chain)
ServiceRequest based on information
included in the request itself in addition to its context and configuration.request - an inbound request to apply to the policy tocontext - contextual informationconfig - the policy's configuration informationchain - the policy chain being invokedvoid apply(io.apiman.gateway.engine.beans.ServiceResponse response,
IPolicyContext context,
Object config,
IPolicyChain<io.apiman.gateway.engine.beans.ServiceResponse> chain)
ServiceResponse based on information
included in the response itself in addition to its context and configuration.response - an outbound response to apply the policy tocontext - contextual informationconfig - the policy's configuration informationchain - chain the policy chain being invokedCopyright © 2014 JBoss, a division of Red Hat. All rights reserved.