1 /* ===============================================================================2 *3 * Part of the InfoGlue Content Management Platform (www.infoglue.org)4 *5 * ===============================================================================6 *7 * Copyright (C)8 * 9 * This program is free software; you can redistribute it and/or modify it under10 * the terms of the GNU General Public License version 2, as published by the11 * Free Software Foundation. See the file LICENSE.html for more information.12 * 13 * This program is distributed in the hope that it will be useful, but WITHOUT14 * ANY WARRANTY, including the implied warranty of MERCHANTABILITY or FITNESS15 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.16 * 17 * You should have received a copy of the GNU General Public License along with18 * this program; if not, write to the Free Software Foundation, Inc. / 59 Temple19 * Place, Suite 330 / Boston, MA 02111-1307 / USA.20 *21 * ===============================================================================22 */23 package org.infoglue.deliver.portal.om;24 25 import java.util.Locale ;26 27 import javax.servlet.RequestDispatcher ;28 import javax.servlet.ServletContext ;29 30 import org.apache.pluto.om.common.Description;31 import org.apache.pluto.om.common.DisplayName;32 import org.apache.pluto.om.common.ObjectID;33 import org.apache.pluto.om.common.ParameterSet;34 import org.apache.pluto.om.servlet.ServletDefinition;35 import org.apache.pluto.om.servlet.WebApplicationDefinition;36 import org.apache.pluto.portalImpl.om.servlet.impl.WebApplicationDefinitionImpl;37 38 /**39 * Dummy implementation of interface40 * @author Jöran41 * TODO Implement this42 *43 */44 public class ServletDefinitionImpl implements ServletDefinition {45 private ObjectID oid;46 private String servletName;47 private ParameterSet params;48 private WebApplicationDefinitionImpl webApplicationDefinition = new WebApplicationDefinitionImpl();49 50 51 public ServletDefinitionImpl(ObjectID oid){52 this.oid = oid;53 }54 55 /* (non-Javadoc)56 * @see org.apache.pluto.om.servlet.ServletDefinition#getId()57 */58 public ObjectID getId() {59 return oid;60 }61 62 /* (non-Javadoc)63 * @see org.apache.pluto.om.servlet.ServletDefinition#getServletName()64 */65 public String getServletName() {66 return servletName;67 }68 69 /* (non-Javadoc)70 * @see org.apache.pluto.om.servlet.ServletDefinition#getDisplayName(java.util.Locale)71 */72 public DisplayName getDisplayName(Locale locale) {73 return null;74 }75 76 /* (non-Javadoc)77 * @see org.apache.pluto.om.servlet.ServletDefinition#getDescription(java.util.Locale)78 */79 public Description getDescription(Locale locale) {80 return null;81 }82 83 /* (non-Javadoc)84 * @see org.apache.pluto.om.servlet.ServletDefinition#getServletClass()85 */86 public String getServletClass() {87 return null;88 }89 90 /* (non-Javadoc)91 * @see org.apache.pluto.om.servlet.ServletDefinition#getInitParameterSet()92 */93 public ParameterSet getInitParameterSet() {94 return params;95 }96 97 /* (non-Javadoc)98 * @see org.apache.pluto.om.servlet.ServletDefinition#getWebApplicationDefinition()99 */100 public WebApplicationDefinition getWebApplicationDefinition() {101 return webApplicationDefinition;102 }103 104 /* (non-Javadoc)105 * @see org.apache.pluto.om.servlet.ServletDefinition#getRequestDispatcher(javax.servlet.ServletContext)106 */107 public RequestDispatcher getRequestDispatcher(ServletContext servletContext) {108 return null;109 }110 111 /* (non-Javadoc)112 * @see org.apache.pluto.om.servlet.ServletDefinition#getAvailable()113 */114 public long getAvailable() {115 return 0;116 }117 118 /* (non-Javadoc)119 * @see org.apache.pluto.om.servlet.ServletDefinition#isUnavailable()120 */121 public boolean isUnavailable() {122 return false;123 }124 125 }126