Questão SCWCD EXAM STUDY KIT SECOND EDITION

[quote]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).[/quote]
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á.

Bom dia Gilson,
Ao invés de olhar a interface ServletRequest olhe a HttpServletRequest.

http://docs.oracle.com/javaee/5/api/javax/servlet/ServletRequest.html
http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html

Por acaso seria possível disponibilizar para mim esse material do scwcd?

Boa tarde Robinson,
Eu procurei na interface HttpServletRequest também e não encontrei o método getHeaderValue(). E mesmo que estivesse nesta interface estria errada a resposta pois ela diz que o método pertence a interface ServletRequest.
Quanto ao material eu encontrei no 4shared, mas pode me enviar seu e-mail que lhe envio.

Obrigado

Agora que caiu a ficha:

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 (existe na interface)
d getHeaders() of ServletRequest 
e getHeaders() of HttpServletRequest (existe na interface)

Passei meu email via MP.