cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/components/resolver ResolverImpl.java
Date Sun, 25 Nov 2001 23:24:31 GMT
crossley    01/11/25 15:24:31

  Modified:    src/org/apache/cocoon/components/resolver ResolverImpl.java
  Log:
  Log the resolution of entities.
  
  Revision  Changes    Path
  1.8       +7 -2      xml-cocoon2/src/org/apache/cocoon/components/resolver/ResolverImpl.java
  
  Index: ResolverImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/resolver/ResolverImpl.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ResolverImpl.java	2001/10/30 15:20:46	1.7
  +++ ResolverImpl.java	2001/11/25 23:24:31	1.8
  @@ -44,7 +44,7 @@
    * </resolver>
    *
    * @author <a href="mailto:dims@yahoo.com">Davanum Srinivas</a>
  - * @version CVS $Revision: 1.7 $ $Date: 2001/10/30 15:20:46 $
  + * @version CVS $Revision: 1.8 $ $Date: 2001/11/25 23:24:31 $
    */
   public class ResolverImpl extends AbstractLoggable
           implements Resolver, Contextualizable, Composable, Configurable, ThreadSafe, Disposable
{
  @@ -160,7 +160,12 @@
       public InputSource resolveEntity(String publicId,
                                        String systemId)
               throws SAXException, IOException {
  -        return catalogResolver.resolveEntity(publicId, systemId);
  +      InputSource altInputSource = catalogResolver.resolveEntity(publicId,systemId);
  +      if (altInputSource != null) {
  +        getLogger().debug("Resolved catalog entity: " + publicId + " "
  +          + altInputSource.getSystemId());
  +      }
  +      return altInputSource;
       }
   
       /**
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message