You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2016/11/16 15:32:05 UTC

svn commit: r1770002 - /tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java

Author: remm
Date: Wed Nov 16 15:32:05 2016
New Revision: 1770002

URL: http://svn.apache.org/viewvc?rev=1770002&view=rev
Log:
Javadoc improvement.

Modified:
    tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java

Modified: tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java?rev=1770002&r1=1770001&r2=1770002&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java (original)
+++ tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java Wed Nov 16 15:32:05 2016
@@ -389,12 +389,14 @@ public class Tomcat {
     }
 
     // ------- Extra customization -------
-    // You can tune individual tomcat objects, using internal APIs
+    // You can tune individual Tomcat objects, using internal APIs
 
     /**
-     * Get the default http connector that is used by the embedded
+     * Get the default HTTP connector that is used by the embedded
      * Tomcat. It is first configured connector in the service.
-     * This will not create a default connector.
+     * If there's no connector defined, it will create and add a default
+     * connector using the port and address specified in this Tomcat
+     * instance, and return it for further customization.
      *
      * @return The connector object
      */
@@ -413,6 +415,11 @@ public class Tomcat {
         return connector;
     }
 
+    /**
+     * Set the specified connector in the service, if it is not already
+     * present.
+     * @param connector The connector instance to add
+     */
     public void setConnector(Connector connector) {
         Service service = getService();
         boolean found = false;



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