HttpServletResponse class is used to return the response data to the client.
public void setContentType(String type)
public PrintWriter getWriter()
public ServletOutputStream getOutputStream()
public void setContentLength(int len)
public void setStatusCode(int sc)
public void setHeader(String name, String value)
public void sendRedirect(String location)