tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core ServerConnector.java
Date Tue, 25 Apr 2000 22:07:05 GMT
costin      00/04/25 15:07:04

  Modified:    src/share/org/apache/tomcat/core ServerConnector.java
  Log:
  - Added comments to ServerConnector.
  - Removed unused methods ( used before <connector> tag was introduced )
  
  Revision  Changes    Path
  1.2       +28 -10    jakarta-tomcat/src/share/org/apache/tomcat/core/ServerConnector.java
  
  Index: ServerConnector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/ServerConnector.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ServerConnector.java	1999/10/09 00:30:17	1.1
  +++ ServerConnector.java	2000/04/25 22:07:04	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/ServerConnector.java,v
1.1 1999/10/09 00:30:17 duncan Exp $
  - * $Revision: 1.1 $
  - * $Date: 1999/10/09 00:30:17 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/ServerConnector.java,v
1.2 2000/04/25 22:07:04 costin Exp $
  + * $Revision: 1.2 $
  + * $Date: 2000/04/25 22:07:04 $
    *
    * ====================================================================
    *
  @@ -65,19 +65,37 @@
   package org.apache.tomcat.core;
   
   /** 
  + * This is the adapter between the servlet world and the
  + * protocol implementation.
    *
  + *  Tomcat.core will receive a Request/Response object - it
  + *  can be either a normal HTTP request or any other protocol that
  + *  can be mapped to a Request/Response model - including AJPxx,
  + *  JNI, etc. If tomcat is integrated with a web server it will
  + *  probably use a optimized binary protocol or JNI to communicate with
  + *  the server, and in this case tomcat will be in fact a AJP or
  + *  JNI server. 
  + * 
  + *  The Request and Response can be created and should be reused by the connector.
  + *
  + *  The connector must implement the get/set pattern for configuration, and
  + *  may use setProperty( name, value ) pattern, but this is not
  + *  under the control of the servlet engine ( and it's not part of this
  + *  interface!).
    */
  -
   public interface ServerConnector {
   
  +    /** Start the adapter. This is done by the context manager when the server
  +     * is ready to accept requests.
  +     */
       public void start() throws Exception;
   
  +    /** Stop the connector. Will be called by the context manager when the
  +     *  server is shut-down.
  +     */
       public void stop() throws Exception;
  -
  -    public void setContextManager( ContextManager ctx );
   
  -    /** Something better is needed */
  -    public void setProperty( String prop, String value);
  -    public void setAttribute( String prop, Object value);
  -    public Object getAttribute( String prop);
  +    /** Set the entry point to tomcat
  +     */
  +    public void setContextManager( ContextManager cm );
   }
  
  
  

Mime
View raw message