HttpRequestListener¶
-
public interface
HttpRequestListener
extends RequestListener¶ HttpRequestListener is a listener for handling requests for both HTTP
GET
andPOST
methods.Author: Hugo Y. K. Lam
Methods¶
doEndRequest¶
-
public void
doEndRequest
(HttpServletRequest request, HttpServletResponse response)¶ Invoked after invoking processRequest().
Parameters: - request – the servlet request.
- response – the servlet response.
Throws: - RequestListenerException – if errors occurred during processing the request.
doStartRequest¶
-
public boolean
doStartRequest
(HttpServletRequest request, HttpServletResponse response)¶ Invoked before invoking processRequest().
Parameters: - request – the servlet request.
- response – the servlet response.
Throws: - RequestListenerException – if errors occurred during processing the request.
Returns: true if processRequest() should be invoked.
processRequest¶
-
public String
processRequest
(HttpServletRequest request, HttpServletResponse response)¶ Processes requests for both HTTP
GET
andPOST
methods.Parameters: - request – the servlet request.
- response – the servlet response.
Throws: - RequestListenerException – if errors occurred during processing the request.
Returns: the forwarding path.