Jumat, 10 Februari 2017

What is HttpServletResponse interface in Servlets

The HttpServletResponse is a subtype of ServletResponse interface. Implementation for this interface is provided by the servlet container. The HttpServletResponse interface object let’s us to specify information that will be a part of the HTTP response headers or the HTTP response. Following methods helps us to manipulate the HTTP response headers: addHeader(String name, String value) containsHeader(String name) setHeader(String name, String value) setDateHeader(String name, long date) addIntHeader(String name, int value) addDateHeader(String name, long date)   Following table shows some of the header fields and the description of their value: Other methods provided by this interface are: sendError(int) sendError(int, String) sendRedirect(String URL)

The post What is HttpServletResponse interface in Servlets appeared first on Coding Security.


What is HttpServletResponse interface in Servlets
read more

Tidak ada komentar:

Posting Komentar