01: /*
02: * This file is part of the WfMOpen project.
03: * Copyright (C) 2001-2005 Danet GmbH (www.danet.de), BU BTS.
04: * All rights reserved.
05: *
06: * This program is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU General Public License as published by
08: * the Free Software Foundation; either version 2 of the License, or
09: * (at your option) any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: *
20: * $Id: MyFacesResourceServlet.java,v 1.2 2006/09/29 12:32:11 drmlipp Exp $
21: *
22: * $Log: MyFacesResourceServlet.java,v $
23: * Revision 1.2 2006/09/29 12:32:11 drmlipp
24: * Consistently using WfMOpen as projct name now.
25: *
26: * Revision 1.1 2006/09/11 15:29:28 drmlipp
27: * Improved portlet support.
28: *
29: */
30: package de.danet.an.util.jsf;
31:
32: import java.io.IOException;
33:
34: import javax.servlet.ServletException;
35: import javax.servlet.http.HttpServlet;
36: import javax.servlet.http.HttpServletRequest;
37: import javax.servlet.http.HttpServletResponse;
38:
39: import org.apache.myfaces.renderkit.html.util.AddResource;
40: import org.apache.myfaces.renderkit.html.util.AddResourceFactory;
41:
42: /**
43: * This class provides a servlet that provides MyFaces resources.
44: *
45: * @author Michael Lipp
46: *
47: */
48: public class MyFacesResourceServlet extends HttpServlet {
49:
50: /* (non-Javadoc)
51: * @see javax.servlet.http.HttpServlet#doGet
52: */
53: protected void doGet(HttpServletRequest request,
54: HttpServletResponse response) throws ServletException,
55: IOException {
56: AddResource addResource = AddResourceFactory
57: .getInstance(request);
58: addResource.serveResource(getServletContext(), request,
59: response);
60: }
61: }
|