1 /**
2 * Licensed under the Artistic License; you may not use this file
3 * except in compliance with the License.
4 * You may obtain a copy of the License at
5 *
6 * http://displaytag.sourceforge.net/license.html
7 *
8 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
9 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
10 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11 */
12 package org.displaytag.portlet;
13
14 import javax.servlet.jsp.PageContext;
15
16 import org.displaytag.util.RequestHelper;
17 import org.displaytag.util.RequestHelperFactory;
18
19
20 /**
21 * Generates {@link PortletRequestHelper} objects.
22 * @author Eric Dalquist <a href="mailto:dalquist@gmail.com">dalquist@gmail.com</a>
23 * @version $Id: PortletRequestHelperFactory.java 996 2006-01-06 15:34:08Z fgiust $
24 */
25 public class PortletRequestHelperFactory implements RequestHelperFactory
26 {
27
28 /**
29 * @see org.displaytag.util.RequestHelperFactory#getRequestHelperInstance(javax.servlet.jsp.PageContext)
30 */
31 public RequestHelper getRequestHelperInstance(PageContext context)
32 {
33 return new PortletRequestHelper(context);
34 }
35 }