The HttpServletRequest interface is a subtype of ServletRequest interface. Implementation for this interface is provided by the servlet container. The HttpServletRequest interface object allows us to access the data available in the HTTP headers and HTTP requests. Following methods helps us to access the header information: String getHeader(String) Enumeration getHeaders(String) Enumeration getHeaderNames() Following methods helps us to access the path information: String getContextPath() String getServletPath() String getPathInfo() String getRequestURI() HttpServletResponse Interface 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
The post How to work with Http Servlet Request interface in java appeared first on Coding Security.
How to work with Http Servlet Request interface in java
read more
Tidak ada komentar:
Posting Komentar