use of io.gravitee.plugin.policy.PolicyPlugin in project gravitee-gateway by gravitee-io.
the class RequestInvalidContentTest method register.
@Override
public void register(PolicyPluginManager policyPluginManager) {
super.register(policyPluginManager);
PolicyPlugin errorRequestStreamPolicy = PolicyBuilder.build("content-request-error", ValidateRequestPolicy.class);
policyPluginManager.register(errorRequestStreamPolicy);
PolicyPlugin errorResponseStreamPolicy = PolicyBuilder.build("content-response-error", ValidateResponsePolicy.class);
policyPluginManager.register(errorResponseStreamPolicy);
}
use of io.gravitee.plugin.policy.PolicyPlugin in project gravitee-gateway by gravitee-io.
the class ResponseInvalidContentTest method register.
@Override
public void register(PolicyPluginManager policyPluginManager) {
super.register(policyPluginManager);
PolicyPlugin errorResponseStreamPolicy = PolicyBuilder.build("content-response-error", ValidateResponsePolicy.class);
policyPluginManager.register(errorResponseStreamPolicy);
}
use of io.gravitee.plugin.policy.PolicyPlugin in project gravitee-gateway by gravitee-io.
the class TransformRequestContentGatewayTest method register.
@Override
public void register(PolicyPluginManager policyPluginManager) {
super.register(policyPluginManager);
PolicyPlugin transformRequestContentPolicy = PolicyBuilder.build("transform-request-content", TransformRequestContentPolicy.class);
policyPluginManager.register(transformRequestContentPolicy);
}
use of io.gravitee.plugin.policy.PolicyPlugin in project gravitee-gateway by gravitee-io.
the class TransformResponseContentUsingBuilderGatewayTest method register.
@Override
public void register(PolicyPluginManager policyPluginManager) {
super.register(policyPluginManager);
PolicyPlugin transformResponseContentPolicy = PolicyBuilder.build("transform-response-content", TransformResponseContentPolicy.class);
policyPluginManager.register(transformResponseContentPolicy);
}
use of io.gravitee.plugin.policy.PolicyPlugin in project gravitee-gateway by gravitee-io.
the class AbstractGatewayTest method register.
@Override
public void register(PolicyPluginManager policyPluginManager) {
PolicyPlugin apiKey = PolicyBuilder.build("api-key", ApiKeyPolicy.class);
policyPluginManager.register(apiKey);
PolicyPlugin unsecuredPolicy = PolicyBuilder.build("key-less", KeylessPolicy.class);
policyPluginManager.register(unsecuredPolicy);
PolicyPlugin oauth2Policy = PolicyBuilder.build("oauth2", KeylessPolicy.class);
policyPluginManager.register(oauth2Policy);
PolicyPlugin jwtPolicy = PolicyBuilder.build("jwt", KeylessPolicy.class);
policyPluginManager.register(jwtPolicy);
}
Aggregations