/*
* This file is part of the WfMOpen project.
* Copyright (C) 2001-2005 Danet GmbH (www.danet.de), BU BTS.
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* $Id: MyFacesResourceServlet.java 1607 2006-09-29 12:32:13Z drmlipp $
*
* $Log$
* Revision 1.1 2006/09/11 15:29:28 drmlipp
* Improved portlet support.
*
*/
package de.danet.an.util.jsf;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.myfaces.renderkit.html.util.AddResource;
import org.apache.myfaces.renderkit.html.util.AddResourceFactory;
/**
* This class provides a servlet that provides MyFaces resources.
*
* @author Michael Lipp
*
*/
public class MyFacesResourceServlet extends HttpServlet {
/* (non-Javadoc)
* @see javax.servlet.http.HttpServlet#doGet
*/
protected void doGet
(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
AddResource addResource
= AddResourceFactory.getInstance(request);
addResource.serveResource(getServletContext(), request, response);
}
}