changeset 930:cd080b7bcf49

remove AsyncContinuation.undispatch()
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 09 Oct 2016 19:20:52 -0600
parents 3191abe890ef
children 6f7e2ff51879
files src/org/eclipse/jetty/continuation/Continuation.java src/org/eclipse/jetty/server/AsyncContinuation.java
diffstat 2 files changed, 1 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
diff -r 3191abe890ef -r cd080b7bcf49 src/org/eclipse/jetty/continuation/Continuation.java
--- a/src/org/eclipse/jetty/continuation/Continuation.java	Sun Oct 09 19:13:46 2016 -0600
+++ b/src/org/eclipse/jetty/continuation/Continuation.java	Sun Oct 09 19:20:52 2016 -0600
@@ -416,5 +416,5 @@
 	 * @throws ContinuationThrowable thrown if the request is suspended. The instance of the 
 	 * exception may be reused on subsequent calls, so the stack frame may not be accurate.
 	 */
-	public void undispatch() throws ContinuationThrowable;
+//	public void undispatch() throws ContinuationThrowable;
 }
diff -r 3191abe890ef -r cd080b7bcf49 src/org/eclipse/jetty/server/AsyncContinuation.java
--- a/src/org/eclipse/jetty/server/AsyncContinuation.java	Sun Oct 09 19:13:46 2016 -0600
+++ b/src/org/eclipse/jetty/server/AsyncContinuation.java	Sun Oct 09 19:20:52 2016 -0600
@@ -176,15 +176,6 @@
 		return _responseWrapped;
 	}
 
-/*
-	public boolean isInitial()
-	{
-		synchronized(this)
-		{
-			return true;
-		}
-	}
-*/	
 	/* ------------------------------------------------------------ */
 	/* (non-Javadoc)
 	 * @see javax.servlet.ServletRequest#isSuspended()
@@ -575,21 +566,6 @@
 		_connection.getRequest().setAttribute(name,attribute);
 	}
 
-	/* ------------------------------------------------------------ */
-	/**
-	 * @see org.eclipse.jetty.continuation.Continuation#undispatch()
-	 */
-	public void undispatch()
-	{
-		if (isSuspended())
-		{
-			if (LOG.isDebugEnabled())
-				throw new ContinuationThrowable();
-			else
-				throw __exception;
-		}
-		throw new IllegalStateException("!suspended");
-	}
 
 	/* ------------------------------------------------------------ */
 	/* ------------------------------------------------------------ */