posted 6 years ago
In my Restful service application I get XML data ..which we log it into a log file.
I want to mask the accountNumber before I log the input XML request to a log file.
Also, to log the response xml data ..
Could you please let me know the best way?
Note : We have different Services which we expose to the client
1.I am thinking of using SAX parser and then when I encounter the element <accountNUmber> I wil call the logic which mask the account number.
And return the StringBuffer. (In future may be <depositaccountNumber>, <phonenumber>or <FaxNumber>)..
2. I don't want to go with the Xpath , I use spring Aspect doBefore() where the above logic goes..We expose different services.