Oracle
1Z0-899 · Question #171
Which three are true about the HttpServletRequestWrapper class? (Choose three.)
The correct answer is A. The HttpServletRequestWrapper is an example of the Decorator pattern. B. The HttpServletRequestWrapper can be used to extend the functionality of a servlet request. F. An HttpServletRequestWrapper may modify the header of a request within an object implementing the. See the full explanation below for the reasoning.
Question
Which three are true about the HttpServletRequestWrapper class? (Choose three.)
Options
- AThe HttpServletRequestWrapper is an example of the Decorator pattern.
- BThe HttpServletRequestWrapper can be used to extend the functionality of a servlet request.
- CA subclass of HttpServletRequestWrapper CANNOT modify the behavior of the getReader method.
- DAn HttpServletRequestWrapper may be used only by a class implement the javax.servlet.Filter interface.
- EAn HttpServletRequestWrapper CANNOT be used on the request passed to the RequestDispatcher.interface.
- FAn HttpServletRequestWrapper may modify the header of a request within an object implementing the
How the community answered
(17 responses)- A82% (14)
- C6% (1)
- D12% (2)
Community Discussion
No community discussion yet for this question.