changeset 933:c9513d80f305

remove AsyncContext support
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 09 Oct 2016 20:25:02 -0600
parents 947df3056ddb
children fe461f7cfc8e
files src/org/eclipse/jetty/server/AsyncContinuation.java
diffstat 1 files changed, 2 insertions(+), 38 deletions(-) [+]
line wrap: on
line diff
diff -r 947df3056ddb -r c9513d80f305 src/org/eclipse/jetty/server/AsyncContinuation.java
--- a/src/org/eclipse/jetty/server/AsyncContinuation.java	Sun Oct 09 20:20:13 2016 -0600
+++ b/src/org/eclipse/jetty/server/AsyncContinuation.java	Sun Oct 09 20:25:02 2016 -0600
@@ -18,8 +18,6 @@
 
 package org.eclipse.jetty.server;
 
-import javax.servlet.AsyncContext;
-import javax.servlet.AsyncEvent;
 import javax.servlet.AsyncListener;
 import javax.servlet.RequestDispatcher;
 import javax.servlet.ServletException;
@@ -44,10 +42,10 @@
 import org.eclipse.jetty.util.thread.Timeout;
 
 /* ------------------------------------------------------------ */
-/** Implementation of Continuation and AsyncContext interfaces
+/** Implementation of Continuation interfaces
  * 
  */
-public class AsyncContinuation implements AsyncContext, Continuation
+public class AsyncContinuation implements Continuation
 {
 	private static final Logger LOG = LoggerFactory.getLogger(AsyncContinuation.class);
 
@@ -314,22 +312,6 @@
 	}
 
 	/* ------------------------------------------------------------ */
-	@Override
-	public <T extends AsyncListener> T createListener(Class<T> clazz) throws ServletException 
-	{
-		try
-		{
-			// TODO inject
-			return clazz.newInstance();
-		}
-		catch(Exception e)
-		{
-			throw new ServletException(e);
-		}
-	}
-
-
-	/* ------------------------------------------------------------ */
 	/* (non-Javadoc)
 	 * @see javax.servlet.ServletRequest#complete()
 	 */
@@ -526,22 +508,4 @@
 		_connection.getRequest().setAttribute(name,attribute);
 	}
 
-
-	/* ------------------------------------------------------------ */
-	/* ------------------------------------------------------------ */
-	public class AsyncTimeout extends Timeout.Task implements Runnable
-	{
-			@Override
-			public void expired()
-			{
-				AsyncContinuation.this.expired();
-			}
-
-			@Override
-			public void run()
-			{
-				AsyncContinuation.this.expired();
-			}
-	}
-
 }