tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1042716 - /tomcat/trunk/java/org/apache/coyote/AbstractProtocolHandler.java
Date Mon, 06 Dec 2010 16:41:06 GMT
Author: markt
Date: Mon Dec  6 16:41:06 2010
New Revision: 1042716

URL: http://svn.apache.org/viewvc?rev=1042716&view=rev
Log:
Since the address is exposed to sub-components, expose the port as well.

Modified:
    tomcat/trunk/java/org/apache/coyote/AbstractProtocolHandler.java

Modified: tomcat/trunk/java/org/apache/coyote/AbstractProtocolHandler.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/AbstractProtocolHandler.java?rev=1042716&r1=1042715&r2=1042716&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/AbstractProtocolHandler.java (original)
+++ tomcat/trunk/java/org/apache/coyote/AbstractProtocolHandler.java Mon Dec  6 16:41:06 2010
@@ -186,10 +186,6 @@ public abstract class AbstractProtocolHa
     }
 
 
-    public int getPort() { return endpoint.getPort(); }
-    public void setPort(int port) { endpoint.setPort(port); }
-
-
     public int getBacklog() { return endpoint.getBacklog(); }
     public void setBacklog(int backlog) { endpoint.setBacklog(backlog); }
 
@@ -209,8 +205,15 @@ public abstract class AbstractProtocolHa
 
     public InetAddress getAddress() { return endpoint.getAddress(); }
     public void setAddress(InetAddress ia) {
-        endpoint.setAddress( ia );
-        setAttribute("address", "" + ia);
+        endpoint.setAddress(ia);
+        setAttribute("address", ia.toString());
+    }
+
+
+    public int getPort() { return endpoint.getPort(); }
+    public void setPort(int port) {
+        endpoint.setPort(port);
+        setAttribute("port", Integer.toString(port));
     }
 
 



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


Mime
View raw message