Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

XML masK confidential number

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
Your mother is a hamster and your father smells of tiny ads!
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic