cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet" <>
Subject Re: isGET in interceptors...
Date Fri, 15 Dec 2006 15:21:38 GMT
I'm not quite sure that there is a need to change the chain
dynamically at all.  Why not considering a tree instead of
a simple list ?  Depending on some conditions (HTTP VERB,
operation QName, ...), a branch of the tree would be used.
I guess this may need a bit of design, but would allow a clean
separation of interceptors between, while allowing a static
interceptor chain.
As I said in a previous mail, I don't really see how policies can
be applied on a per operation level without allowing different
interceptor chain (or all interceptors would have to check if
they should be applied, which is the current case with the GET
Would it be too complex ? Or there is no real use case for that ?

On 12/15/06, Dan Diephouse <> wrote:
> On 12/7/06, James Mao <> wrote:
> >
> >
> > I'm OK with the changing the chain dynamically, they both works. if we
> > change the chain dynamically, then for both the SOAP binding and XML
> > binding and any other binding to filter the interceptors dynamically, i
> > mean the maintenance cost is same. but this approach do have a benefit,
> > the benefit is that all the isGET logic in the same place, if we want to
> > add some configuration for this function, it'll be more easier. But the
> > other side is, it'll be harder to change the chain if the interceptor is
> > coarse-grained, that means we want some part of the logic of the
> > inteceptor, but in some conditions we want to exclude the interceptors,
> > but yes, you can break down the interceptors into pieces to work around
> > the problem. So there's pros and cons.
> Can you please justify the performance benefit of this if we go down this
> route? As noted in the previous email if we have a dynamic interceptor
> removal, than we still have problems if a user adds an interceptor and they
> aren't aware they need to look for the isGET case.
> I think we should synthesize a document, and unless you can provide some
> compelling performance reason I don't see any reason not too. You haven't
> shown anything to back up your reasoning that there is a performance issue.
> - Dan
> --
> Dan Diephouse
> Envoi Solutions
> |

Guillaume Nodet

View raw message