I was able to achieve what I wanted by doing the following: 1) Defining a new provider which contributes the filter I require 2) Setting a policy for my custom service to use that provider.
This approach seems to be sufficient, disregard my prior question. Regards, Christopher Jackson > On Nov 7, 2015, at 8:38 PM, Christopher Jackson > <[email protected]> wrote: > > Hi, > > What is the proper way to add a filter to a custom gateway service? I know I > can extend ServiceDeploymentContributorBase to add a filter. But I thought > with Knox 0.6.0 and its new declarative approach (rewrite.xml, service.xml) > that I would be able to do it simply by making additions to the service.xml > file. After a failed attempt and taking a look at the ServiceDefinition class > I see that only routes, policies, and a custom dispatch can be declared in > it, why not filters? > > Regards, > > Christopher Jackson
