001/* 002 * Copyright 2011-2016 UnboundID Corp. 003 * 004 * This program is free software; you can redistribute it and/or modify 005 * it under the terms of the GNU General Public License (GPLv2 only) 006 * or the terms of the GNU Lesser General Public License (LGPLv2.1 only) 007 * as published by the Free Software Foundation. 008 * 009 * This program is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 012 * GNU General Public License for more details. 013 * 014 * You should have received a copy of the GNU General Public License 015 * along with this program; if not, see <http://www.gnu.org/licenses>. 016 */ 017 018package org.apache.wink.server.internal.servlet; 019 020import org.apache.wink.server.internal.DeploymentConfiguration; 021 022import javax.servlet.http.HttpServlet; 023import javax.ws.rs.core.Application; 024 025/** 026 * Wink compatibility layer class - see Wink docs. 027 */ 028public abstract class RestServlet extends HttpServlet 029{ 030 /** 031 * Wink compatibility layer class - see Wink docs. 032 * @param configuration Wink compatibility layer class - see Wink docs. 033 * @return Wink compatibility layer class - see Wink docs. 034 * @throws ClassNotFoundException Wink compatibility layer class 035 * - see Wink docs. 036 * @throws InstantiationException Wink compatibility layer class 037 * - see Wink docs. 038 * @throws IllegalAccessException Wink compatibility layer class 039 * - see Wink docs. 040 */ 041 protected abstract Application getApplication( 042 DeploymentConfiguration configuration) 043 throws ClassNotFoundException, InstantiationException, 044 IllegalAccessException; 045}