tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hgo...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11 Http11Protocol.java
Date Tue, 07 Oct 2003 08:48:50 GMT
hgomez      2003/10/07 01:48:50

  Modified:    http11/src/java/org/apache/coyote/http11 Http11Protocol.java
  Log:
  Add regexp support to check for Compression/HTTP 1.1 compatible browsers.
  
  Revision  Changes    Path
  1.42      +7 -0      jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Protocol.java
  
  Index: Http11Protocol.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Protocol.java,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- Http11Protocol.java	6 Oct 2003 08:46:04 -0000	1.41
  +++ Http11Protocol.java	7 Oct 2003 08:48:50 -0000	1.42
  @@ -257,6 +257,7 @@
        */
       private String compression = "off";
       private String noCompressionUserAgents = null;
  +    private String restrictedUserAgents = null;
       private String compressableMimeTypes = "text/html,text/xml,text/plain";
       private int compressionMinSize    = 2048;
       
  @@ -333,6 +334,11 @@
           setAttribute("compression", valueS);
       }
   
  +    public void setRestrictedUserAgents(String valueS) {
  +        restrictedUserAgents = valueS;
  +        setAttribute("restrictedUserAgents", valueS);
  +    }
  +
       public void setNoCompressionUserAgents(String valueS) {
           noCompressionUserAgents = valueS;
           setAttribute("noCompressionUserAgents", valueS);
  @@ -493,6 +499,7 @@
               processor.setCompressionMinSize( proto.compressionMinSize);         
               processor.setNoCompressionUserAgents( proto.noCompressionUserAgents);
               processor.setCompressableMimeTypes( proto.compressableMimeTypes);
  +            processor.setRestrictedUserAgents( proto.restrictedUserAgents);
               processor.setSocketBuffer( proto.socketBuffer );
   
               thData[Http11Protocol.THREAD_DATA_PROCESSOR]=processor;
  
  
  

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


Mime
View raw message