Hi Christopher -

I was just going to point you to the providers for adding filters.
I'm curious what sort of filter that you wanted to add and whether it fits
in the existing provider types.

It is relatively straight forward to add a new authentication or federation
filter or one of the others but defining a new type (role) of provider
requires a bit more work than it ideally should.

thanks!

--larry

On Sun, Nov 8, 2015 at 12:05 AM, Christopher Jackson <
[email protected]> wrote:

> 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
>
>

Reply via email to