diff src/org/eclipse/jetty/server/AsyncContinuation.java @ 933:c9513d80f305

remove AsyncContext support
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 09 Oct 2016 20:25:02 -0600
parents 947df3056ddb
children fe461f7cfc8e
line wrap: on
line diff
--- 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();
-			}
-	}
-
 }