You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2013/05/03 18:23:04 UTC
svn commit: r1478863 - in /tomcat/trunk/java/org/apache/coyote/http11:
AbstractOutputBuffer.java LocalStrings.properties
Author: markt
Date: Fri May 3 16:23:04 2013
New Revision: 1478863
URL: http://svn.apache.org/r1478863
Log:
Another TODO
Add an error message
Modified:
tomcat/trunk/java/org/apache/coyote/http11/AbstractOutputBuffer.java
tomcat/trunk/java/org/apache/coyote/http11/LocalStrings.properties
Modified: tomcat/trunk/java/org/apache/coyote/http11/AbstractOutputBuffer.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/AbstractOutputBuffer.java?rev=1478863&r1=1478862&r2=1478863&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/AbstractOutputBuffer.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/AbstractOutputBuffer.java Fri May 3 16:23:04 2013
@@ -297,8 +297,9 @@ public abstract class AbstractOutputBuff
*/
public void reset() {
- if (committed)
- throw new IllegalStateException(/*FIXME:Put an error message*/);
+ if (committed) {
+ throw new IllegalStateException(sm.getString("iob.illegalreset"));
+ }
// Recycle Request object
response.recycle();
Modified: tomcat/trunk/java/org/apache/coyote/http11/LocalStrings.properties
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/LocalStrings.properties?rev=1478863&r1=1478862&r2=1478863&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/LocalStrings.properties (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/LocalStrings.properties Fri May 3 16:23:04 2013
@@ -34,4 +34,5 @@ iib.parseheaders.ise.error=Unexpected st
iib.requestheadertoolarge.error=Request header is too large
iib.socketClosed=The socket has been closed in another thread
+iob.illegalreset=The response may not be reset once it has been committed
iob.responseheadertoolarge.error=An attempt was made to write more data to the response headers than there was room available in the buffer. Increase maxHttpHeaderSize on the connector or write less data into the response headers.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org