tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r951100 - /tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java
Date Thu, 03 Jun 2010 18:28:02 GMT
Author: markt
Date: Thu Jun  3 18:28:01 2010
New Revision: 951100

URL: http://svn.apache.org/viewvc?rev=951100&view=rev
Log:
Correct Javadoc
Fix whitespace

Modified:
    tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java

Modified: tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java?rev=951100&r1=951099&r2=951100&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java Thu Jun  3 18:28:01
2010
@@ -330,7 +330,7 @@ public class AbstractHttp11Processor {
 
 
     /**
-     * Return the list of restricted user agents.
+     * Return the list of compressable mime-types.
      */
     public String[] findCompressableMimeTypes() {
         return (compressableMimeTypes);
@@ -614,8 +614,6 @@ public class AbstractHttp11Processor {
         return adapter;
     }
 
- 
-
 
     /**
      * Check for compression
@@ -677,6 +675,7 @@ public class AbstractHttp11Processor {
         return false;
     }
 
+    
     /**
      * Specialized utility method: find a sequence of lower case bytes inside
      * a ByteChunk.
@@ -688,23 +687,23 @@ public class AbstractHttp11Processor {
         int start = bc.getStart();
         int end = bc.getEnd();
 
-    // Look for first char
-    int srcEnd = b.length;
+        // Look for first char
+        int srcEnd = b.length;
 
-    for (int i = start; i <= (end - srcEnd); i++) {
-        if (Ascii.toLower(buff[i]) != first) continue;
-        // found first char, now look for a match
+        for (int i = start; i <= (end - srcEnd); i++) {
+            if (Ascii.toLower(buff[i]) != first) continue;
+            // found first char, now look for a match
             int myPos = i+1;
-        for (int srcPos = 1; srcPos < srcEnd; ) {
+            for (int srcPos = 1; srcPos < srcEnd; ) {
                 if (Ascii.toLower(buff[myPos++]) != b[srcPos++])
-            break;
+                    break;
                 if (srcPos == srcEnd) return i - start; // found it
+            }
         }
-    }
-    return -1;
-
+        return -1;
     }
 
+    
     /**
      * Determine if we must drop the connection because of the HTTP status
      * code.  Use the same list of codes as Apache/httpd.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message