This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Mock Tests doubts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Mock Tests doubts" Watch "Mock Tests doubts" New topic

Mock Tests doubts

sukhavasi vasavi
Ranch Hand

Joined: Jul 18, 2007
Posts: 59
1)Which three are true about HttpServletRequestWrapper class?
a)HttpServletequest is an example of DecoratorPattern
b)this can be used to extend the functionality of servletRequest.
c)A subclass of HttpServletRequestWrapper can not modify the behaviour
of getReader method
d)An HttpServletRequestWrapper may be used only by a class implementing the javax.servlet.Filter interface
e)An HttpServletrequestWrapper can not be used on the request passed to the RequestDispatcher.include method
f)An HttpServletRequestWrapperWrapper may modify the header of a request within an object implementing the javax.servlet.Filter interface.

Iam thinking that the answers are a,b,d but in Mocktest they given as a,b,f.Please tell me the correct answer?
Phani Burra
Ranch Hand

Joined: Dec 13, 2007
Posts: 52

d option is wrong bec the wrapper class can be used by any class which has an object to the class which extends the wrapper class.
Consider Paul's rocket mass heater.
subject: Mock Tests doubts
Similar Threads
Which three are true about the HttpServletRequestWrapper class?
Question Regarding Filters...
mock exam question on filters
Question: HttpServletRequestWrapper Class
double about change request header in HttpServletRequestWrapper