This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Well Prabhu...here are my thoughts on this....when you say all 4 are possible that's partially true....not completely....
If you look at the 3rd option....you may think that it can made possible by extending the HttpServletRequestWrapper class, wrapping the original request, modifying the request headers and passing it on to the chain.doFilter() method....right? But, think about this, can the request header values be actually changed?...all you can do is provide implementations of getHeader(), getHeaders(), etc. which would return different values for those headers...so it would seem as if the headers have been modified...I mean you don't have a setHeader() in HttpServletRequestWrapper....do you?
Please correct me if I've gone wrong somewhere because I want to be sure that I know the right thing....Please post your thoughts on this....I would really appreciate it....Thanks in advance [ December 26, 2006: Message edited by: Sayak Banerjee ]
Joined: Aug 11, 2006
actually it was shared within my group so i am not sure from which mock exam they pick it.