From: markt Date: Wed, 22 Sep 2010 20:04:32 +0000 (+0000) Subject: Add the missing onStartAsync event X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7347b9946f62bdff543466b01c643e5cee74c7ef;p=tomcat7.0 Add the missing onStartAsync event git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1000164 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/core/AsyncListenerWrapper.java b/java/org/apache/catalina/core/AsyncListenerWrapper.java index b4f64f9d4..9c274ed00 100644 --- a/java/org/apache/catalina/core/AsyncListenerWrapper.java +++ b/java/org/apache/catalina/core/AsyncListenerWrapper.java @@ -30,19 +30,23 @@ public class AsyncListenerWrapper { private AsyncListener listener = null; + + public void fireOnStartAsync(AsyncEvent event) throws IOException { + listener.onStartAsync(event); + } + + public void fireOnComplete(AsyncEvent event) throws IOException { - // TODO SERVLET3 - async listener.onComplete(event); } public void fireOnTimeout(AsyncEvent event) throws IOException { - // TODO SERVLET3 - async listener.onTimeout(event); } + public void fireOnError(AsyncEvent event) throws IOException { - // TODO SERVLET3 - async listener.onError(event); } @@ -51,6 +55,7 @@ public class AsyncListenerWrapper { return listener; } + public void setListener(AsyncListener listener) { this.listener = listener; }