You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by kk...@apache.org on 2011/01/15 20:53:47 UTC
svn commit: r1059404 - in /tomcat/trunk:
java/org/apache/coyote/http11/AbstractHttp11Processor.java
java/org/apache/coyote/http11/AbstractHttp11Protocol.java
webapps/docs/config/http.xml
Author: kkolinko
Date: Sat Jan 15 19:53:47 2011
New Revision: 1059404
URL: http://svn.apache.org/viewvc?rev=1059404&view=rev
Log:
Update documentation for restrictedUserAgents, noCompressionUserAgents attributes of HTTP connectors, because they now use a single regex.
Modified:
tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java
tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Protocol.java
tomcat/trunk/webapps/docs/config/http.xml
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=1059404&r1=1059403&r2=1059404&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java Sat Jan 15 19:53:47 2011
@@ -122,7 +122,7 @@ public abstract class AbstractHttp11Proc
/**
- * List of restricted user agents.
+ * Regular expression that defines the restricted user agents.
*/
protected Pattern restrictedUserAgents = null;
@@ -211,7 +211,7 @@ public abstract class AbstractHttp11Proc
/**
- * List of user agents to not use gzip with
+ * Regular expression that defines the user agents to not use gzip with
*/
protected Pattern noCompressionUserAgents = null;
Modified: tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Protocol.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Protocol.java?rev=1059404&r1=1059403&r2=1059404&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Protocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Protocol.java Sat Jan 15 19:53:47 2011
@@ -115,8 +115,8 @@ public abstract class AbstractHttp11Prot
/**
- * User agents regular expressions which should be restricted to HTTP/1.0
- * support.
+ * Regular expression that defines the User agents which should be
+ * restricted to HTTP/1.0 support.
*/
private String restrictedUserAgents = null;
public String getRestrictedUserAgents() { return restrictedUserAgents; }
Modified: tomcat/trunk/webapps/docs/config/http.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/config/http.xml?rev=1059404&r1=1059403&r2=1059404&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/config/http.xml (original)
+++ tomcat/trunk/webapps/docs/config/http.xml Sat Jan 15 19:53:47 2011
@@ -383,8 +383,9 @@
</attribute>
<attribute name="noCompressionUserAgents" required="false">
- <p>The value is a comma separated list of regular expressions matching
- user-agents of HTTP clients for which compression should not be used,
+ <p>The value is a regular expression (using <code>java.util.regex</code>)
+ matching the <code>user-agent</code> header of HTTP clients for which
+ compression should not be used,
because these clients, although they do advertise support for the
feature, have a broken implementation.
The default value is an empty String (regexp matching disabled).</p>
@@ -398,10 +399,10 @@
</attribute>
<attribute name="restrictedUserAgents" required="false">
- <p>The value is a comma separated list of regular expressions matching
- user-agents of HTTP clients for which HTTP/1.1 or HTTP/1.0 keep alive
- should not be used, even if the clients advertise support for these
- features.
+ <p>The value is a regular expression (using <code>java.util.regex</code>) matching
+ matching the <code>user-agent</code> header of HTTP clients for which
+ HTTP/1.1 or HTTP/1.0 keep alive should not be used, even if the clients
+ advertise support for these features.
The default value is an empty String (regexp matching disabled).</p>
</attribute>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org