incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ran...@apache.org
Subject cvs commit: incubator-ftpserver/src/java/org/apache/ftpserver DataConnectionConfig.java
Date Thu, 06 Oct 2005 07:09:56 GMT
rana_b      2005/10/06 00:09:56

  Modified:    src/java/org/apache/ftpserver DataConnectionConfig.java
  Log:
  setting ssl log factory
  
  Revision  Changes    Path
  1.4       +5 -2      incubator-ftpserver/src/java/org/apache/ftpserver/DataConnectionConfig.java
  
  Index: DataConnectionConfig.java
  ===================================================================
  RCS file: /home/cvs/incubator-ftpserver/src/java/org/apache/ftpserver/DataConnectionConfig.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DataConnectionConfig.java	6 Oct 2005 05:55:41 -0000	1.3
  +++ DataConnectionConfig.java	6 Oct 2005 07:09:56 -0000	1.4
  @@ -35,6 +35,7 @@
   class DataConnectionConfig implements IDataConnectionConfig {
   
       private Log m_log;
  +    private LogFactory m_logFactory;
       
       private InetAddress m_pasvAddress;
       private int m_pasvPort[][];
  @@ -49,7 +50,8 @@
        * Set the log factory. 
        */
       public void setLogFactory(LogFactory factory) {
  -        m_log = factory.getInstance(getClass());
  +    	m_logFactory = factory;
  +        m_log = m_logFactory.getInstance(getClass());
       }
       
       /**
  @@ -85,6 +87,7 @@
               Configuration sslConf = conf.getConfiguration("ssl", null);
               if(sslConf != null) {
                   m_ssl = (ISsl)Class.forName("org.apache.ftpserver.ssl.Ssl").newInstance();
  +                m_ssl.setLogFactory(m_logFactory);
                   m_ssl.configure(sslConf);
               }
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message