Isomorphic SmartClient/SmartGWT Framework (v9.1p_2014-06-14/PowerEdition Deployment)
What is the best way to implement an Audit Trail Log of all requests in smartGWT application?
I tried to implement ServletFilter intercepting URL(/*) using HttpServletRequestWrapper, resetting the InputStream etc (There are some examples on web on how to do it) but it seems that the HTTP request when it reaches the screenLoader servlet, the body is empty and it throws an error/warn. I am not sure why the HTTP POST body gets removed, I am ensuring that the input stream is recreated from the saved byte[]. I followed the example at
http://stackoverflow.com/questions/1046721/accessing-the-raw-body-of-a-put-or-post-request
Basically I am trying to log all requests coming in. If the above approach doesnot work, what is the alternate suggested by Isomorphic. I have a mix of RPC calls and DataSource Requests.
What is the best way to implement an Audit Trail Log of all requests in smartGWT application?
I tried to implement ServletFilter intercepting URL(/*) using HttpServletRequestWrapper, resetting the InputStream etc (There are some examples on web on how to do it) but it seems that the HTTP request when it reaches the screenLoader servlet, the body is empty and it throws an error/warn. I am not sure why the HTTP POST body gets removed, I am ensuring that the input stream is recreated from the saved byte[]. I followed the example at
http://stackoverflow.com/questions/1046721/accessing-the-raw-body-of-a-put-or-post-request
Basically I am trying to log all requests coming in. If the above approach doesnot work, what is the alternate suggested by Isomorphic. I have a mix of RPC calls and DataSource Requests.
Comment