geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r954358 - in /geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/connector: AbstractHttp11ConnectorGBean.java Http11Protocol.java
Date Mon, 14 Jun 2010 04:30:26 GMT
Author: gawor
Date: Mon Jun 14 04:30:26 2010
New Revision: 954358

URL: http://svn.apache.org/viewvc?rev=954358&view=rev
Log:
clientAuth option for Tomcat connectors supports three settings: true, false, and want. Probably
should be an enum

Modified:
    geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/connector/AbstractHttp11ConnectorGBean.java
    geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/connector/Http11Protocol.java

Modified: geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/connector/AbstractHttp11ConnectorGBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/connector/AbstractHttp11ConnectorGBean.java?rev=954358&r1=954357&r2=954358&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/connector/AbstractHttp11ConnectorGBean.java
(original)
+++ geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/connector/AbstractHttp11ConnectorGBean.java
Mon Jun 14 04:30:26 2010
@@ -74,9 +74,9 @@ public abstract class AbstractHttp11Conn
         return (String) connector.getAttribute("ciphers");
     }
 
-    public boolean getClientAuth() {
+    public String getClientAuth() {
         Object value = connector.getAttribute("clientAuth");
-        return value == null ? false : new Boolean(value.toString()).booleanValue();
+        return value == null ? "false" : value.toString();
     }
 
     public String getKeyAlias() {
@@ -134,8 +134,8 @@ public abstract class AbstractHttp11Conn
     }
     
     @Persistent(manageable=false)
-    public void setClientAuth(boolean clientAuth) {
-        connector.setAttribute("clientAuth", new Boolean(clientAuth));
+    public void setClientAuth(String clientAuth) {
+        connector.setAttribute("clientAuth", clientAuth);
     }
 
     @Persistent(manageable=false)

Modified: geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/connector/Http11Protocol.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/connector/Http11Protocol.java?rev=954358&r1=954357&r2=954358&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/connector/Http11Protocol.java
(original)
+++ geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/connector/Http11Protocol.java
Mon Jun 14 04:30:26 2010
@@ -23,8 +23,8 @@ public interface Http11Protocol {
     //Https
     public String getAlgorithm();
     public void setAlgorithm(String algorithm);
-    public boolean getClientAuth();
-    public void setClientAuth(boolean clientAuth);
+    public String getClientAuth();
+    public void setClientAuth(String clientAuth);
     public String getKeystoreFile();
     public void setKeystoreFile(String keystoreFile);
     public String getKeystorePass();



Mime
View raw message