001/** 002 * 003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved. 004 * 005 * This library is free software; you can redistribute it and/or 006 * modify it under the terms of the GNU Lesser General Public 007 * License as published by the Free Software Foundation; either 008 * version 2.1 of the License, or (at your option) any later version. 009 * 010 * This library is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 013 * Lesser General Public License for more details. 014 * 015 * You should have received a copy of the GNU Lesser General Public 016 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 017 * 018 **/ 019package lucee.cli.servlet; 020 021import javax.servlet.ServletConfig; 022import javax.servlet.ServletContext; 023import javax.servlet.http.HttpServlet; 024 025public class HTTPServletImpl extends HttpServlet { 026 private static final long serialVersionUID = 3270816399105433603L; 027 028 private ServletConfig config; 029 private ServletContext context; 030 private String servletName; 031 032 public HTTPServletImpl(ServletConfig config,ServletContext context, String servletName){ 033 this.config=config; 034 this.context=context; 035 this.servletName=servletName; 036 } 037 038 /** 039 * @see javax.servlet.GenericServlet#getServletConfig() 040 */ 041 public ServletConfig getServletConfig() { 042 return config; 043 } 044 045 /** 046 * @see javax.servlet.GenericServlet#getServletContext() 047 */ 048 public ServletContext getServletContext() { 049 return context; 050 } 051 052 /** 053 * @see javax.servlet.GenericServlet#getServletName() 054 */ 055 @Override 056 public String getServletName() { 057 return servletName; 058 } 059 060}