diff src/org/eclipse/jetty/server/Request.java @ 917:1fc8ee20cb18

remove doSuspend
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 09 Oct 2016 03:23:55 -0600
parents 39c12b2306a2
children 3268ddf919d4
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/Request.java	Sun Oct 09 02:08:40 2016 -0600
+++ b/src/org/eclipse/jetty/server/Request.java	Sun Oct 09 03:23:55 2016 -0600
@@ -1750,19 +1750,13 @@
 	/* ------------------------------------------------------------ */
 	public AsyncContext startAsync() throws IllegalStateException
 	{
-		if (!_asyncSupported)
-			throw new IllegalStateException("!asyncSupported");
-		_async.startAsync();
-		return _async;
+		throw new UnsupportedOperationException();
 	}
 
 	/* ------------------------------------------------------------ */
 	public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
 	{
-		if (!_asyncSupported)
-			throw new IllegalStateException("!asyncSupported");
-		_async.startAsync(_context,servletRequest,servletResponse);
-		return _async;
+		throw new UnsupportedOperationException();
 	}
 
 	/* ------------------------------------------------------------ */