@ -87,7 +87,7 @@ public class StandardServletAsyncWebRequest extends ServletWebRequest implements
@@ -87,7 +87,7 @@ public class StandardServletAsyncWebRequest extends ServletWebRequest implements
@ -142,11 +142,17 @@ public class StandardServletAsyncWebRequest extends ServletWebRequest implements
@@ -142,11 +142,17 @@ public class StandardServletAsyncWebRequest extends ServletWebRequest implements
"or by adding \"<async-supported>true</async-supported>\" to servlet and "+
"filter declarations in web.xml.");
Assert.state(!isAsyncComplete(),"Async processing has already completed");
@ -190,7 +196,7 @@ public class StandardServletAsyncWebRequest extends ServletWebRequest implements
@@ -190,7 +196,7 @@ public class StandardServletAsyncWebRequest extends ServletWebRequest implements
}
privatevoidtransitionToErrorState(){
if(this.state==State.ACTIVE){
if(!isAsyncComplete()){
this.state=State.ERROR;
}
}
@ -323,15 +329,29 @@ public class StandardServletAsyncWebRequest extends ServletWebRequest implements
@@ -323,15 +329,29 @@ public class StandardServletAsyncWebRequest extends ServletWebRequest implements
@ -345,7 +365,10 @@ public class StandardServletAsyncWebRequest extends ServletWebRequest implements
@@ -345,7 +365,10 @@ public class StandardServletAsyncWebRequest extends ServletWebRequest implements
@ -357,7 +380,17 @@ public class StandardServletAsyncWebRequest extends ServletWebRequest implements
@@ -357,7 +380,17 @@ public class StandardServletAsyncWebRequest extends ServletWebRequest implements
*/
privateenumState{
ACTIVE,ERROR,COMPLETED
/** New request (thas may not do async handling). */
NEW,
/** Async handling has started. */
ASYNC,
/** onError notification received, or ServletOutputStream failed. */