Which three are true about the HttpServletRequestWrapper class?

  1. The HttpServletRequestWrapper is an example of the Decorator pattern.

  2. The HttpServletRequestWrapper can be used to extend the functionality of a servlet request.

  3. A subclass of HttpServletRequestWrapper CANNOT modify the behavior of the getReader method.

  4. An HttpServletRequestWrapper may be used only by a class implementing the javax.servlet.Filter interface.

  5. An HttpServletRequestWrapper CANNOT be used on the request passed to the RequestDispatcher.include

  6. An HttpServletRequestWrapper may modify the header of a request within an object implementing the


Correct Option: A,B,F

Find more quizzes: