tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1537804 - /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java
Date Fri, 01 Nov 2013 02:48:54 GMT
Author: olamy
Date: Fri Nov  1 02:48:54 2013
New Revision: 1537804

URL: http://svn.apache.org/r1537804
Log:
[MTOMCAT-245] Missing useBodyEncodingForURI parameter on connector
Submitted by  C├ędric Dutoit

Modified:
    tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java

Modified: tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java
URL: http://svn.apache.org/viewvc/tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java?rev=1537804&r1=1537803&r2=1537804&view=diff
==============================================================================
--- tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java
(original)
+++ tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java
Fri Nov  1 02:48:54 2013
@@ -483,6 +483,9 @@ public abstract class AbstractRunMojo
     @Parameter( property = "maven.tomcat.jarScan.allDirectories", defaultValue = "true" )
     protected boolean jarScanAllDirectories = true;
 
+    @Parameter( property = "maven.tomcat.useBodyEncodingForURI", defaultValue = "false" )
+    protected boolean useBodyEncodingForURI;
+
     // ----------------------------------------------------------------------
     // Fields
     // ----------------------------------------------------------------------
@@ -1055,6 +1058,8 @@ public abstract class AbstractRunMojo
 
                 connector.setURIEncoding( uriEncoding );
 
+                connector.setUseBodyEncodingForURI( this.useBodyEncodingForURI );
+
                 embeddedTomcat.getService().addConnector( connector );
 
                 embeddedTomcat.setConnector( connector );
@@ -1089,6 +1094,8 @@ public abstract class AbstractRunMojo
 
                     httpsConnector.setAttribute( "clientAuth", clientAuth );
 
+                    httpsConnector.setUseBodyEncodingForURI( this.useBodyEncodingForURI );
+
                     embeddedTomcat.getEngine().getService().addConnector( httpsConnector
);
 
                 }
@@ -1100,6 +1107,7 @@ public abstract class AbstractRunMojo
                     ajpConnector = new Connector( ajpProtocol );
                     ajpConnector.setPort( ajpPort );
                     ajpConnector.setURIEncoding( uriEncoding );
+                    ajpConnector.setUseBodyEncodingForURI( this.useBodyEncodingForURI );
                     embeddedTomcat.getEngine().getService().addConnector( ajpConnector );
                 }
 



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


Mime
View raw message