pier        01/08/31 10:50:34

  Modified:    webapp/java WarpConnector.java
  Log:
  <author name="craigmcc">
    Add navigation link properties so that the entire Catalina component
    hierarchy can be navigated.  Previously, you could go "down" from a
    Service to its associated "Connector" and "Container" children, but you
    could not go up.
  
    Note that the existence of Server and Service components is optional -
    they are used when Catalina is configured from conf/server.xml, but are
    not typically used in embedded environments.
  </author>
  
  Revision  Changes    Path
  1.19      +25 -0     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.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- WarpConnector.java        2001/07/25 01:29:59     1.18
  +++ WarpConnector.java        2001/08/31 17:50:34     1.19
  @@ -73,6 +73,7 @@
   import org.apache.catalina.Logger;
   import org.apache.catalina.Request;
   import org.apache.catalina.Response;
  +import org.apache.catalina.Service;
   import org.apache.catalina.net.DefaultServerSocketFactory;
   import org.apache.catalina.net.ServerSocketFactory;
   import org.apache.catalina.util.LifecycleSupport;
  @@ -112,6 +113,8 @@
       private String scheme="warp";
       /** The secure flag of this <code>Connector</code>. */
       private boolean secure=false;
  +    /** The <code>Service</code> we are associated with (if any). */
  +    private Service service=null;
       /** Descriptive information of this <code>Connector</code>. */
       private String info=null;
       /** The address we need to bind to. */
  @@ -287,6 +290,28 @@
   
           if (Constants.DEBUG) logger.debug("Setting secure to "+secure);
       }
  +
  +    /**
  +     * Return the <code>Service</code> with which we are associated (if any).
  +     */
  +    public Service getService() {
  +
  +        return (this.service);
  +
  +    }
  +
  +
  +    /**
  +     * Set the <code>Service</code> with which we are associated (if any).
  +     *
  +     * @param service The service that owns this Engine
  +     */
  +    public void setService(Service service) {
  +
  +        this.service = service;
  +
  +    }
  +
   
       /**
        * Return descriptive information about this <code>Connector</code>.
  
  
  

Reply via email to