Fabio M. wrote:
> 
> ...
> Where and how should I register this extended ReflectiveXmlRpcHandler?
> Is there a code snippet for such a use case?
> 

I reply to myself because I've find a way. Basically I redefined the
newXmlRpcHandler method in the PropertyHandlerMapping. The implementation is
basically the same, but instead of returning RelfectiveXmlRpcHandler and
ReflectiveXmlRpcMetaDataHandler (that are hard-coded in the original
implementation) I return custom subclasses of the twos.

The subclass of ReflectiveXmlRpcHandler overrides the execute method where I
perform my "setup" logic and then I invoke the acutal method by simply
delegating to the superclass.

The subclass of ReflectiveXmlRpcMetaDataHandler is basically a copy of the
original one that extends my custom subclass of ReflectiveXmlRpcHandler.

Everything works, but I have a question: is it this a correct way for
implementing what I described?

Thank you for your help.

Cheers,
Fabio
-- 
View this message in context: 
http://www.nabble.com/Intercepting-calls-to-the-handler-tp16980113p16987013.html
Sent from the Apache Xml-RPC - Dev mailing list archive at Nabble.com.

Reply via email to