tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/webapp/java WarpConnector.java
Date Sat, 13 Oct 2001 01:33:01 GMT
remm        01/10/12 18:33:01

  Modified:    webapp/java WarpConnector.java
  Log:
  - Fix typos.
    Patch sumbmitted Janek Bogucki <janekdb at yahoo.co.uk>
  
  Revision  Changes    Path
  1.21      +6 -5      jakarta-tomcat-connectors/webapp/java/WarpConnector.java
  
  Index: WarpConnector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/java/WarpConnector.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- WarpConnector.java	2001/10/12 22:52:58	1.20
  +++ WarpConnector.java	2001/10/13 01:33:00	1.21
  @@ -67,7 +67,6 @@
   import org.apache.catalina.Container;
   import org.apache.catalina.Context;
   import org.apache.catalina.Lifecycle;
  -import org.apache.catalina.Lifecycle;
   import org.apache.catalina.LifecycleException;
   import org.apache.catalina.LifecycleListener;
   import org.apache.catalina.Logger;
  @@ -252,7 +251,7 @@
   
       /**
        * Return the scheme that will be assigned to requests received
  -     * through this connector.  Default value is "http".
  +     * through this connector.  Default value is "warp".
        */
       public String getScheme() {
           return(this.scheme);
  @@ -362,7 +361,9 @@
       }
   
       /**
  -     * Return the port to which this <code>Connector</code> will bind to.
  +     * Set the port to which this <code>Connector</code> will bind to.
  +     * 
  +     * @param port The bind port
        */
       public void setPort(int port) {
           this.port=port;
  @@ -374,8 +375,8 @@
        * @param address The bind IP address
        */
       public void setAddress(int port) {
  -        if ((redirectPort<1) || (redirectPort>65535))
  -            throw new IllegalArgumentException("Invalid port "+redirectPort);
  +        if ((port<1) || (port>65535))
  +            throw new IllegalArgumentException("Invalid port "+port);
           this.port=port;
   
           if (Constants.DEBUG) logger.debug("Setting port to "+port);
  
  
  

Mime
View raw message