HttpRequestEvent¶
-
public class
HttpRequestEvent
¶ HttpRequestEvent represents an event of an HTTP request.
Author: Hugo Y. K. Lam
Constructors¶
HttpRequestEvent¶
-
HttpRequestEvent
(String pathInfo, HttpServletRequest request, HttpServletResponse response)¶ Creates a new instance of HttpRequestEvent.
Parameters: - pathInfo – the path information.
- request – the request object.
- response – the response object.
Methods¶
getRequest¶
-
public HttpServletRequest
getRequest
()¶ Gets the request object.
Returns: the request object.
getResponse¶
-
public HttpServletResponse
getResponse
()¶ Gets the response object.
Returns: the response object.
setPathInfo¶
setRequest¶
-
void
setRequest
(HttpServletRequest request)¶ Sets the request object.
Parameters: - request – the request object.
setResponse¶
-
void
setResponse
(HttpServletResponse response)¶ Sets the response object.
Parameters: - response – the response object.
toString¶
-
public String
toString
()¶ Returns a string representation of this event.
Returns: a string representation of this event. See also:
java.lang.Object.toString()