Re: [Cppcms-users] json-rpc hook
Brought to you by:
artyom-beilis
From: Leon <le...@wl...> - 2012-03-01 01:39:43
|
Thanks for the tip. The only problem here is that I do have the function name and parameter info there. I might end up using a delegate functor for all the functions so that I can pre-process the methods. On Wed, Feb 29, 2012 at 6:36 PM, Artyom Beilis <art...@ya...> wrote: > Yes, > > You can override void cppcms::application::main(std::string url) > > void main(std::string url) > { > // hook there > > cppcms::rcp::json_rpc_service::main(url); > > } > > > > Artyom Beilis > ------------- > > Support CppCMS by donating money: > https://sourceforge.net/donate/index.php?group_id=209965 > > > >> >> From: Leon <le...@wl...> >> >> Hi, >> When doing json-rpc, is there way I can inject a hook so that I can do >> some checking (like the user id, permission etc.) before each json-rpc >> method is called? >> > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |