7. Which of the following methods would you use to retrieve header values from a
request? (Select two)
a getHeader() of ServletRequest
b getHeaderValue() of ServletRequest
c getHeader() of HttpServletRequest
d getHeaders() of ServletRequest
e getHeaders() of HttpServletRequest
Answers: b and e
Explanation
Headers are a feature of the HTTP protocol. Thus, all the header-specific methods
belong to HttpServletRequest . getHeader() returns a String (or null),
while getHeaders() returns an Enumeration of all the values for that header
(or an empty Enumeration).
A respota e tudo bem, mas a b não consta na documentação (ou já não estou enxergando). Segue o link http://docs.oracle.com/javaee/5/api/javax/servlet/ServletRequest.html.
Alguém poderia confirmar se o livro está correto por favor?
Agradeço desde já.