comparison src/org/eclipse/jetty/server/Request.java @ 920:3268ddf919d4

remove AsyncContinuation.isAsyncStarted()
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 09 Oct 2016 03:51:31 -0600
parents 1fc8ee20cb18
children aa7dc1802d29
comparison
equal deleted inserted replaced
919:dd6b1f079634 920:3268ddf919d4
368 } 368 }
369 369
370 /* ------------------------------------------------------------ */ 370 /* ------------------------------------------------------------ */
371 public AsyncContext getAsyncContext() 371 public AsyncContext getAsyncContext()
372 { 372 {
373 if (_async.isInitial() && !_async.isAsyncStarted()) 373 throw new UnsupportedOperationException();
374 throw new IllegalStateException(_async.getStatusString());
375 return _async;
376 } 374 }
377 375
378 /* ------------------------------------------------------------ */ 376 /* ------------------------------------------------------------ */
379 public AsyncContinuation getAsyncContinuation() 377 public AsyncContinuation getAsyncContinuation()
380 { 378 {
1218 return _handled; 1216 return _handled;
1219 } 1217 }
1220 1218
1221 public boolean isAsyncStarted() 1219 public boolean isAsyncStarted()
1222 { 1220 {
1223 return _async.isAsyncStarted(); 1221 return false;
1224 } 1222 }
1225 1223
1226 1224
1227 /* ------------------------------------------------------------ */ 1225 /* ------------------------------------------------------------ */
1228 public boolean isAsyncSupported() 1226 public boolean isAsyncSupported()