Interfaces
Interfaces for the java.servlet.http package are HttpServletRequest, HttpServletResponse, HttpSession, and HttpSessionBindingListener.
HttpServletRequest Interface
public interface HttpServletRequest extends ServletRequest
The HttpServletRequest interface defines an object that provides the HttpServlet.service() method with access to HTTP-protocol–specific header information sent by the client. The HttpServletRequest interface has 26 methods, described in the following sections.
addHeader() Method
public void addHeader(java.lang.String name, java.lang.String value)
The addHeader() method adds another value to the response for the given header. addHeader() returns no value and throws no exceptions.
Parameters
java.lang.String ...
Get Pure Java Server Pages™ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.