Search in sources :

Example 1 with UrlRewriteMatchDescriptorExt

use of org.apache.knox.gateway.filter.rewrite.ext.UrlRewriteMatchDescriptorExt in project knox by apache.

the class UrlRewriteRuleProcessorImpl method initialize.

@Override
public void initialize(UrlRewriteEnvironment environment, UrlRewriteRuleDescriptor descriptor) throws Exception {
    UrlRewriteMatchDescriptor matchDescriptor = new UrlRewriteMatchDescriptorExt();
    matchDescriptor.operation("matches");
    matchDescriptor.flow(descriptor.flow());
    matchDescriptor.template(descriptor.template());
    matchProcessor = new UrlRewriteMatchProcessorExt();
    matchProcessor.initialize(environment, matchDescriptor);
}
Also used : UrlRewriteMatchDescriptor(org.apache.knox.gateway.filter.rewrite.ext.UrlRewriteMatchDescriptor) UrlRewriteMatchDescriptorExt(org.apache.knox.gateway.filter.rewrite.ext.UrlRewriteMatchDescriptorExt) UrlRewriteMatchProcessorExt(org.apache.knox.gateway.filter.rewrite.ext.UrlRewriteMatchProcessorExt)

Aggregations

UrlRewriteMatchDescriptor (org.apache.knox.gateway.filter.rewrite.ext.UrlRewriteMatchDescriptor)1 UrlRewriteMatchDescriptorExt (org.apache.knox.gateway.filter.rewrite.ext.UrlRewriteMatchDescriptorExt)1 UrlRewriteMatchProcessorExt (org.apache.knox.gateway.filter.rewrite.ext.UrlRewriteMatchProcessorExt)1