comparison src/org/eclipse/jetty/server/AsyncContinuation.java @ 930:cd080b7bcf49

remove AsyncContinuation.undispatch()
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 09 Oct 2016 19:20:52 -0600
parents 3191abe890ef
children 6f7e2ff51879
comparison
equal deleted inserted replaced
929:3191abe890ef 930:cd080b7bcf49
174 public boolean isResponseWrapped() 174 public boolean isResponseWrapped()
175 { 175 {
176 return _responseWrapped; 176 return _responseWrapped;
177 } 177 }
178 178
179 /*
180 public boolean isInitial()
181 {
182 synchronized(this)
183 {
184 return true;
185 }
186 }
187 */
188 /* ------------------------------------------------------------ */ 179 /* ------------------------------------------------------------ */
189 /* (non-Javadoc) 180 /* (non-Javadoc)
190 * @see javax.servlet.ServletRequest#isSuspended() 181 * @see javax.servlet.ServletRequest#isSuspended()
191 */ 182 */
192 public boolean isSuspended() 183 public boolean isSuspended()
573 public void setAttribute(String name, Object attribute) 564 public void setAttribute(String name, Object attribute)
574 { 565 {
575 _connection.getRequest().setAttribute(name,attribute); 566 _connection.getRequest().setAttribute(name,attribute);
576 } 567 }
577 568
578 /* ------------------------------------------------------------ */
579 /**
580 * @see org.eclipse.jetty.continuation.Continuation#undispatch()
581 */
582 public void undispatch()
583 {
584 if (isSuspended())
585 {
586 if (LOG.isDebugEnabled())
587 throw new ContinuationThrowable();
588 else
589 throw __exception;
590 }
591 throw new IllegalStateException("!suspended");
592 }
593 569
594 /* ------------------------------------------------------------ */ 570 /* ------------------------------------------------------------ */
595 /* ------------------------------------------------------------ */ 571 /* ------------------------------------------------------------ */
596 public class AsyncTimeout extends Timeout.Task implements Runnable 572 public class AsyncTimeout extends Timeout.Task implements Runnable
597 { 573 {