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/socketfactory FtpSocketFactory.java
Date Thu, 06 Oct 2005 07:10:13 GMT
rana_b      2005/10/06 00:10:13

  Modified:    src/java/org/apache/ftpserver/socketfactory
                        FtpSocketFactory.java
  Log:
  setting ssl log factory
  
  Revision  Changes    Path
  1.4       +5 -2      incubator-ftpserver/src/java/org/apache/ftpserver/socketfactory/FtpSocketFactory.java
  
  Index: FtpSocketFactory.java
  ===================================================================
  RCS file: /home/cvs/incubator-ftpserver/src/java/org/apache/ftpserver/socketfactory/FtpSocketFactory.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FtpSocketFactory.java	6 Oct 2005 06:11:12 -0000	1.3
  +++ FtpSocketFactory.java	6 Oct 2005 07:10:13 -0000	1.4
  @@ -36,6 +36,7 @@
   class FtpSocketFactory implements ISocketFactory {
       
       private Log m_log;
  +    private LogFactory m_logFactory;
       
       private InetAddress m_serverAddress;
       private int m_port;
  @@ -46,7 +47,8 @@
        * Set the log factory.
        */
       public void setLogFactory(LogFactory factory) {
  -        m_log = factory.getInstance(getClass());
  +    	m_logFactory = factory;
  +        m_log = m_logFactory.getInstance(getClass());
       }
       
       /**
  @@ -68,6 +70,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