Which method must be used to encode a URL passed as an argument to
HttpServletResponse.sendRedirect when using URL rewriting for session tracking?
A.
ServletResponse.encodeURL
B.
HttpServletResponse.encodeURL
C.
ServletResponse.encodeRedirectURL
D.
HttpServletResponse.encodeRedirectURL
Explanation: