Author: remy.maucherat(a)jboss.com
Date: 2009-03-31 14:16:24 -0400 (Tue, 31 Mar 2009)
New Revision: 974
Modified:
trunk/java/org/apache/catalina/connector/Request.java
trunk/java/org/apache/catalina/core/ApplicationContext.java
trunk/java/org/apache/catalina/core/StandardWrapperValve.java
Log:
- Add some simple impl.
Modified: trunk/java/org/apache/catalina/connector/Request.java
===================================================================
--- trunk/java/org/apache/catalina/connector/Request.java 2009-03-27 15:43:53 UTC (rev
973)
+++ trunk/java/org/apache/catalina/connector/Request.java 2009-03-31 18:16:24 UTC (rev
974)
@@ -2772,16 +2772,15 @@
setTimeout((timeout > Integer.MAX_VALUE) ? Integer.MAX_VALUE : (int)
timeout);
}
- @Override
public AsyncContext startAsync() throws IllegalStateException {
- // TODO Auto-generated method stub
- return null;
+ return startAsync(getRequest(), response.getResponse());
}
- @Override
public AsyncContext startAsync(ServletRequest servletRequest,
ServletResponse servletResponse) throws IllegalStateException {
// TODO Auto-generated method stub
+ asyncMode = true;
+ eventMode = true;
return null;
}
Modified: trunk/java/org/apache/catalina/core/ApplicationContext.java
===================================================================
--- trunk/java/org/apache/catalina/core/ApplicationContext.java 2009-03-27 15:43:53 UTC
(rev 973)
+++ trunk/java/org/apache/catalina/core/ApplicationContext.java 2009-03-31 18:16:24 UTC
(rev 974)
@@ -891,13 +891,13 @@
public ServletRegistration addServlet(String servletName,
Class<? extends Servlet> clazz) throws IllegalArgumentException,
IllegalStateException {
- // TODO Auto-generated method stub
- return null;
+ return addServlet(servletName, clazz.getName());
}
public boolean setInitParameter(String name, String value) {
- // TODO Auto-generated method stub
+ context.addParameter(name, value);
+ // FIXME: return value ?
return false;
}
Modified: trunk/java/org/apache/catalina/core/StandardWrapperValve.java
===================================================================
--- trunk/java/org/apache/catalina/core/StandardWrapperValve.java 2009-03-27 15:43:53 UTC
(rev 973)
+++ trunk/java/org/apache/catalina/core/StandardWrapperValve.java 2009-03-31 18:16:24 UTC
(rev 974)
@@ -396,6 +396,10 @@
request.setAttribute
(ApplicationFilterFactory.DISPATCHER_REQUEST_PATH_ATTR,
requestPathMB);
+
+ // FIXME: Implement async mode, which means invoking listeners or the Servlet
+ // FIXME: Some async mode need creating a new filter chain
+
// Get the current (unchanged) filter chain for this request
ApplicationFilterChain filterChain =
(ApplicationFilterChain) request.getFilterChain();
Show replies by date