logo       
Google Custom Search
    AddThis Social Bookmark Button

svn commit: r220091 - /lenya/trunk/src/java/org/apache/lenya/cms/cocoon/sou: msg#00085

Subject: svn commit: r220091 - /lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySource.java
Author: michi
Date: Thu Jul 21 07:28:45 2005
New Revision: 220091

URL: http://svn.apache.org/viewcvs?rev=220091&view=rev
Log:
ASF license added and some debug statements to check usage

Modified:
    
lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySource.java

Modified: 
lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySource.java
URL: 
http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySource.java?rev=220091&r1=220090&r2=220091&view=diff
==============================================================================
--- 
lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySource.java 
(original)
+++ 
lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySource.java 
Thu Jul 21 07:28:45 2005
@@ -1,8 +1,18 @@
 /*
- * Created on 03.04.2005
+ * Copyright  1999-2005 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
  *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
  */
 package org.apache.lenya.cms.cocoon.source;
 
@@ -58,6 +68,8 @@
         this.manager = manager;
         this.logger = logger;
 
+        getLogger().debug("Init RepositorySource");
+
         if (map == null) {
             throw new IllegalArgumentException("The identity map must not be 
null!");
         }
@@ -111,6 +123,7 @@
      * @see org.apache.excalibur.source.ModifiableSource#getOutputStream()
      */
     public OutputStream getOutputStream() throws IOException {
+        getLogger().debug("Get OutputStream for " + getURI());
         try {
             if (!this.node.isLocked()) {
                 throw new RuntimeException("Cannot write to source [" + 
getURI() + "]: not locked!");
@@ -168,6 +181,7 @@
      * @see org.apache.excalibur.source.Source#getInputStream()
      */
     public InputStream getInputStream() throws IOException, 
SourceNotFoundException {
+        getLogger().debug("Get InputStream for " + getURI());
         if (!exists()) {
             throw new SourceNotFoundException("The source [" + getURI() + "] 
does not exist!");
         }
@@ -308,4 +322,4 @@
             throw new RuntimeException(e);
         }
     }
-}
\ No newline at end of file
+}



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>