The Java EE 6 Tutorial

Constructing Responses

A response contains data passed between a server and the client. All responses implement the ServletResponse interface. This interface defines methods that allow you to

HTTP response objects, javax.servlet.http.HttpServletResponse, have fields representing HTTP headers, such as the following: