spring - REST: Sending additional user data with some requests -


i have rest service implemented using spring. requests i'd transfer additional data client, timestamp , username (and maybe else) keep kind of actions log. best , correct way achieve that?

obviously pass data request params or within message body, wrong , force me update appropriate controllers - there better way?

i not sure if not want change controller's method signatures or not, if add httpservletrequest parameters of controller, spring automatically inject object. comes metadata looking including date/timestamp, username, etc.

http://docs.oracle.com/javaee/6/api/javax/servlet/http/httpservletrequest.html


Comments