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...@locus.apache.org on 2000/08/11 00:33:59 UTC

cvs commit: jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/connector/test HttpConnector.java

remm        00/08/10 15:33:58

  Modified:    proposals/catalina/src/share/org/apache/tomcat/connector/test
                        HttpConnector.java
  Log:
  - The test connector was not including the scheme and secure
    related methods, which was breaking the build
  
  Revision  Changes    Path
  1.7       +66 -4     jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/connector/test/HttpConnector.java
  
  Index: HttpConnector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/connector/test/HttpConnector.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- HttpConnector.java	2000/05/03 02:12:44	1.6
  +++ HttpConnector.java	2000/08/10 22:33:57	1.7
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/connector/test/HttpConnector.java,v 1.6 2000/05/03 02:12:44 craigmcc Exp $
  - * $Revision: 1.6 $
  - * $Date: 2000/05/03 02:12:44 $
  + * $Header: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/connector/test/HttpConnector.java,v 1.7 2000/08/10 22:33:57 remm Exp $
  + * $Revision: 1.7 $
  + * $Date: 2000/08/10 22:33:57 $
    *
    * ====================================================================
    *
  @@ -91,7 +91,7 @@
    * purposes.  Not intended to be the final solution.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.6 $ $Date: 2000/05/03 02:12:44 $
  + * @version $Revision: 1.7 $ $Date: 2000/08/10 22:33:57 $
    */
   
   
  @@ -146,6 +146,20 @@
   
   
       /**
  +     * The request scheme that will be set on all requests received
  +     * through this connector.
  +     */
  +    private String scheme = "http";
  +
  +
  +    /**
  +     * The secure connection flag that will be set on all requests received
  +     * through this connector.
  +     */
  +    private boolean secure = false;
  +
  +
  +    /**
        * Descriptive information about this Connector implementation.
        */
       private static final String info =
  @@ -433,6 +447,54 @@
       public void setPort(int port) {
   
   	this.port = port;
  +
  +    }
  +
  +
  +    /**
  +     * Return the scheme that will be assigned to requests received
  +     * through this connector.  Default value is "http".
  +     */
  +    public String getScheme() {
  +
  +	return (this.scheme);
  +
  +    }
  +
  +
  +    /**
  +     * Set the scheme that will be assigned to requests received through
  +     * this connector.
  +     *
  +     * @param scheme The new scheme
  +     */
  +    public void setScheme(String scheme) {
  +
  +	this.scheme = scheme;
  +
  +    }
  +
  +
  +    /**
  +     * Return the secure connection flag that will be assigned to requests
  +     * received through this connector.  Default value is "false".
  +     */
  +    public boolean getSecure() {
  +
  +	return (this.secure);
  +
  +    }
  +
  +
  +    /**
  +     * Set the secure connection flag that will be assigned to requests
  +     * received through this connector.
  +     *
  +     * @param secure The new secure connection flag
  +     */
  +    public void setSecure(boolean secure) {
  +
  +	this.secure = secure;
   
       }