You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by re...@locus.apache.org on 2000/05/17 01:58:26 UTC

cvs commit: jakarta-slide/src/share/org/apache/slide/webdav/method WebdavMethod.java

remm        00/05/16 16:58:25

  Modified:    src/share/org/apache/slide/common Domain.java
               src/share/org/apache/slide/webdav WebdavServlet.java
               src/share/org/apache/slide/webdav/method WebdavMethod.java
  Log:
  Fixed the problem with the new log4j
  
  Remy
  
  Revision  Changes    Path
  1.3       +6 -4      jakarta-slide/src/share/org/apache/slide/common/Domain.java
  
  Index: Domain.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/Domain.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Domain.java	2000/05/16 23:07:34	1.2
  +++ Domain.java	2000/05/16 23:58:23	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/Domain.java,v 1.2 2000/05/16 23:07:34 remm Exp $
  - * $Revision: 1.2 $
  - * $Date: 2000/05/16 23:07:34 $
  + * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/Domain.java,v 1.3 2000/05/16 23:58:23 remm Exp $
  + * $Revision: 1.3 $
  + * $Date: 2000/05/16 23:58:23 $
    *
    * ====================================================================
    *
  @@ -71,6 +71,7 @@
   import java.io.Reader;
   import java.io.IOException;
   import org.log4j.Category;
  +import org.log4j.BasicConfigurator;
   import org.apache.slide.util.Configuration;
   import org.apache.slide.structure.*;
   import org.apache.slide.content.*;
  @@ -84,7 +85,7 @@
    * For now, does not implement access control on Namespaces.
    * 
    * @author <a href="mailto:remm@exoffice.com">Remy Maucherat</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    */
   public final class Domain {
       
  @@ -108,6 +109,7 @@
       
       
       static {
  +        BasicConfigurator.configure();
           CAT.info("Initializing Domain");
           namespaces = new Hashtable();
           
  
  
  
  1.3       +5 -5      jakarta-slide/src/share/org/apache/slide/webdav/WebdavServlet.java
  
  Index: WebdavServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/webdav/WebdavServlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- WebdavServlet.java	2000/05/16 23:07:43	1.2
  +++ WebdavServlet.java	2000/05/16 23:58:23	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/webdav/WebdavServlet.java,v 1.2 2000/05/16 23:07:43 remm Exp $
  - * $Revision: 1.2 $
  - * $Date: 2000/05/16 23:07:43 $
  + * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/webdav/WebdavServlet.java,v 1.3 2000/05/16 23:58:23 remm Exp $
  + * $Revision: 1.3 $
  + * $Date: 2000/05/16 23:58:23 $
    *
    * ====================================================================
    *
  @@ -227,7 +227,7 @@
               requestUri = req.getPathInfo();
           }
   	
  -        System.out.println(System.currentTimeMillis()
  +        System.out.println(System.currentTimeMillis() + " - " 
                              + req.getMethod() + " on object " + requestUri);
   	
           Principal principal = req.getUserPrincipal();
  @@ -358,7 +358,7 @@
       protected void service (HttpServletRequest req, HttpServletResponse resp)
           throws ServletException, IOException {
           
  -        showRequestInfo(req);
  +        //showRequestInfo(req);
           
           resp.setStatus(WebdavStatus.SC_OK);
           resp.addHeader("Date", formatter.format(new Date()));
  
  
  
  1.2       +3 -6      jakarta-slide/src/share/org/apache/slide/webdav/method/WebdavMethod.java
  
  Index: WebdavMethod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/webdav/method/WebdavMethod.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- WebdavMethod.java	2000/05/09 02:47:35	1.1
  +++ WebdavMethod.java	2000/05/16 23:58:25	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/webdav/method/WebdavMethod.java,v 1.1 2000/05/09 02:47:35 remm Exp $
  - * $Revision: 1.1 $
  - * $Date: 2000/05/09 02:47:35 $
  + * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/webdav/method/WebdavMethod.java,v 1.2 2000/05/16 23:58:25 remm Exp $
  + * $Revision: 1.2 $
  + * $Date: 2000/05/16 23:58:25 $
    *
    * ====================================================================
    *
  @@ -206,9 +206,6 @@
           } else {
               this.credToken = new CredentialsToken("");
           }
  -        
  -        // Temporary debug statement ...
  -        System.out.println("Principal : " + principal);
           
       }