File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes mock exam question on filters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "mock exam question on filters" Watch "mock exam question on filters" New topic
Author

mock exam question on filters

vijaya bacina
Ranch Hand

Joined: Aug 23, 2005
Posts: 155
Which three are true about the HttpServletRequestWrapper class?
(Choose three.)
A. The HttpServletRequestWrapper is an example of the Decorator
pattern.
B. The HttpServletRequestWrapper can be used to extend the
functionally of a
servlet request.
C. A subclass of HttpServletRequestWrapper CANNOT modify the behavior
of the
getReader method.
D. An HttpServletRequestWrapper may be used only by a class
implementing the
javax.servlet.Filter interface.
E. An HttpServletRequestWrapper CANNOT be used on the request passed
to the
RequestDispatcher.include method.
F. An HttpServletRequestWrapper may modify the header of a request
within an
object implementing the javax.servlet.Filter interface.

I dont know the answers....
i guess A,B,D.... Am i right???
Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
I say only A, B are correct. D is incorrect according me, as wrapper can be used by any other class not only by filter implementing class, though we use mostly in filter implementing class. But no one restricts me from doing this.


Rizwan
SCJA, SCJP, SCWCD, SCBCD, SCDJWS.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mock exam question on filters
 
Similar Threads
Question: HttpServletRequestWrapper Class
Mock Tests doubts
double about change request header in HttpServletRequestWrapper
Which three are true about the HttpServletRequestWrapper class?
Question Regarding Filters...