1 /* 2 * The SmartWeb Framework 3 * Copyright (C) 2004-2006 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2.1 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 * 19 * For further informations on the SmartWeb Framework please visit 20 * 21 * http://smartweb.sourceforge.net 22 */ 23 24 25 package net.smartlab.web.browse; 26 27 import java.util.Iterator; 28 29 /** 30 * TODO documentation 31 * 32 * @author rlogiacco 33 */ 34 abstract public class GenericNavigationHandler implements NavigationHandler { 35 36 /** 37 * TODO documentation 38 */ 39 private NavigationHandlerConfig navigationConfig; 40 41 /** 42 * TODO documentation 43 * 44 * @return 45 */ 46 public NavigationHandlerConfig getNavigationConfig() { 47 return navigationConfig; 48 } 49 50 /** 51 * TODO documentation 52 * 53 * @return 54 */ 55 public NavigationContext getNavigationContext() { 56 return navigationConfig.getProcessContext(); 57 } 58 59 /** 60 * @see net.smartlab.web.browse.NavigationHandler#init(net.smartlab.web.browse.NavigationHandlerConfig) 61 */ 62 public void init(NavigationHandlerConfig config) { 63 this.navigationConfig = config; 64 this.init(); 65 } 66 67 /** 68 * TODO documentation 69 */ 70 protected abstract void init(); 71 72 /** 73 * TODO documentation 74 * 75 * @param name 76 * @return 77 */ 78 public String getInitParameter(String name) { 79 return navigationConfig.getInitParameter(name); 80 } 81 82 /** 83 * TODO documentation 84 * 85 * @return 86 */ 87 public Iterator getInitParameterNames() { 88 return navigationConfig.getInitParameterNames(); 89 } 90 91 /** 92 * @see net.smartlab.web.browse.NavigationHandler#release() 93 */ 94 public void release() { 95 // 96 } 97 }