1 /* 2 * DummyRedirection is part of the Cofax content management system library. 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2.1 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 * 18 * Please see http://www.cofax.org for contact information and other related informaion. 19 * 20 * $Header: /cvsroot/cofax/cofax/src/org/cofax/DummyRedirection.java,v 1.6.2.1 2006/12/11 16:28:45 fxrobin Exp $ 21 */ 22 23 package org.cofax; 24 25 /** 26 * A empty redirection class to use in Cofax's configuration when redirection 27 * capabilities are not necessary. A subclass of <code>Redirection</code>. 28 * <p> 29 * There is no mention of the <code>DummyRedirection</code> class in 30 * <code>CofaxServlet</code>. <code>Redirection</code> classes are listed 31 * in the configuration. 32 * </p> 33 * 34 * @author Rajiv Pant 35 * @author Hung Dao 36 * @author Derek Dinh 37 * @author Karl Martino 38 */ 39 public class DummyRedirection extends Redirection { 40 41 /** 42 * To be ran once before using the redirection class. Initializes any 43 * internal fields. 44 */ 45 public void init(DataStore db) { 46 47 return; 48 49 } 50 51 /** 52 * Get's a redirection URL and returns it to the servlet. 53 */ 54 public String getRedirection(String pathInfo) { 55 56 return ""; 57 58 } 59 60 } 61