001    /*****************************************************************************
002     * Copyright (C) PicoContainer Organization. All rights reserved.            *
003     * ------------------------------------------------------------------------- *
004     * The software in this package is published under the terms of the BSD      *
005     * style license a copy of which has been included with this distribution in *
006     * the LICENSE.txt file.                                                     *
007     *                                                                           *
008     *****************************************************************************/
009    package org.picocontainer.web.chain;
010    
011    /**
012     * Implementation of ChainMonitor that logs to console
013     * 
014     * @author Mauro Talevi
015     */
016    public class ConsoleChainMonitor implements ChainMonitor {
017    
018        /**
019         * @see org.picocontainer.web.chain.ChainMonitor#filteringURL(java.lang.String)
020         */
021        public void filteringURL(String originalUrl) {
022            System.err.println("Filtering "+originalUrl);
023        }
024    
025        /**
026         * @see org.picocontainer.web.chain.ChainMonitor#exceptionOccurred(java.lang.Exception)
027         */
028        public void exceptionOccurred(Exception e) {
029            e.printStackTrace();
030        }
031    
032        /**
033         * @see org.picocontainer.web.chain.ChainMonitor#pathAdded(java.lang.String, java.lang.String)
034         */
035        public void pathAdded(String path, String url) {
036            System.err.println("Added path "+path+" from URL "+url);
037        }
038    
039    }