Author: remy.maucherat(a)jboss.com
Date: 2010-05-07 09:13:29 -0400 (Fri, 07 May 2010)
New Revision: 1469
Modified:
trunk/java/org/apache/catalina/InstanceEvent.java
Log:
- Expose request and response through event.
Modified: trunk/java/org/apache/catalina/InstanceEvent.java
===================================================================
--- trunk/java/org/apache/catalina/InstanceEvent.java 2010-05-07 12:38:52 UTC (rev 1468)
+++ trunk/java/org/apache/catalina/InstanceEvent.java 2010-05-07 13:13:29 UTC (rev 1469)
@@ -527,7 +527,11 @@
*/
public ServletRequest getRequest() {
- return (this.request);
+ if (event != null) {
+ return this.event.getHttpServletRequest();
+ } else {
+ return (this.request);
+ }
}
@@ -537,7 +541,11 @@
*/
public ServletResponse getResponse() {
- return (this.response);
+ if (event != null) {
+ return this.event.getHttpServletResponse();
+ } else {
+ return (this.response);
+ }
}
Show replies by date