Which HttpServletRequest method allows you to retrieve all of the request headers?

You need to create a servlet filter that stores all request headers to a database for all requests to
the web application’s home page “/index.jsp”. Which HttpServletRequest method allows you to
retrieve all of the request headers?

You need to create a servlet filter that stores all request headers to a database for all requests to
the web application’s home page “/index.jsp”. Which HttpServletRequest method allows you to
retrieve all of the request headers?

A.
String[] getHeaderNames()

B.
String[] getRequestHeaders()

C.
java.util.Iterator getHeaderNames()

D.
java.util.Iterator getRequestHeaders()

E.
java.util.Enumeration getHeaderNames()

F.
java.util.Enumeration getRequestHeaders()

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *