Author: remy.maucherat(a)jboss.com
Date: 2011-09-23 12:47:53 -0400 (Fri, 23 Sep 2011)
New Revision: 1842
Modified:
trunk/java/org/apache/catalina/connector/Connector.java
Log:
Add system properties for the URI encoding configuration.
Modified: trunk/java/org/apache/catalina/connector/Connector.java
===================================================================
--- trunk/java/org/apache/catalina/connector/Connector.java 2011-09-21 14:40:31 UTC (rev
1841)
+++ trunk/java/org/apache/catalina/connector/Connector.java 2011-09-23 16:47:53 UTC (rev
1842)
@@ -68,6 +68,13 @@
Boolean.valueOf(System.getProperty("org.apache.catalina.connector.X_POWERED_BY",
"false")).booleanValue();
+ protected static final String URI_ENCODING =
+ System.getProperty("org.apache.catalina.connector.URI_ENCODING");
+
+ protected static final boolean USE_BODY_ENCODING_FOR_QUERY_STRING =
+
Boolean.valueOf(System.getProperty("org.apache.catalina.connector.USE_BODY_ENCODING_FOR_QUERY_STRING",
"false")).booleanValue();
+
+
// ------------------------------------------------------------ Constructor
@@ -248,13 +255,13 @@
/**
* URI encoding.
*/
- protected String URIEncoding = null;
+ protected String URIEncoding = URI_ENCODING;
/**
* URI encoding as body.
*/
- protected boolean useBodyEncodingForURI = false;
+ protected boolean useBodyEncodingForURI = USE_BODY_ENCODING_FOR_QUERY_STRING;
/**
Show replies by date