HTTP protocol parameters and request headers can be accessed by the original HTTP request. The following methods exist in the HTTPServletRequest to access these elements:

getHeader
getHeaders
getHeaderNames
getParameter
getParameterNames
getParameterValues

Refer to Java Servlet Technology, v.2.3 (Servlets) for information on access to HTTP protocol parameters and request headers.


Copyright © 1997, 2014 Oracle and/or its affiliates. All rights reserved. Legal Notices