Rename new method.
authorrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 9 Mar 2011 05:05:36 +0000 (05:05 +0000)
committerrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 9 Mar 2011 05:05:36 +0000 (05:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1079665 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/connector/Request.java

index 30d5587..f30e7ac 100644 (file)
@@ -2456,7 +2456,7 @@ public class Request
     /**
      * Disable swallowing of remaining input if configured
      */
-    protected void disableSwallowInput() {
+    protected void checkSwallowInput() {
         Context context = getContext();
         if (context != null && !context.getSwallowAbortedUploads()) {
             coyoteRequest.action(ActionCode.DISABLE_SWALLOW_INPUT, null);
@@ -2633,7 +2633,7 @@ public class Request
         } catch (InvalidContentTypeException e) {
             partsParseException = new ServletException(e);
         } catch (FileUploadBase.SizeException e) {
-            disableSwallowInput();
+            checkSwallowInput();
             partsParseException = new IllegalStateException(e);
         } catch (FileUploadException e) {
             partsParseException = new IOException(e);
@@ -2859,7 +2859,7 @@ public class Request
                     context.getLogger().debug(
                             sm.getString("coyoteRequest.postTooLarge"));
                 }
-                disableSwallowInput();
+                checkSwallowInput();
                 return;
             }
             byte[] formData = null;
@@ -2937,7 +2937,7 @@ public class Request
             if (connector.getMaxPostSize() > 0 &&
                     (body.getLength() + len) > connector.getMaxPostSize()) {
                 // Too much data
-                disableSwallowInput();
+                checkSwallowInput();
                 throw new IllegalArgumentException(
                         sm.getString("coyoteRequest.chunkedPostTooLarge"));
             }