1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet;
16  
17  import com.liferay.portal.model.Portlet;
18  
19  import javax.portlet.PortletContext;
20  import javax.portlet.PortletMode;
21  import javax.portlet.PortletPreferences;
22  import javax.portlet.WindowState;
23  
24  import javax.servlet.http.HttpServletRequest;
25  
26  /**
27   * <a href="ActionRequestFactory.java.html"><b><i>View Source</i></b></a>
28   *
29   * @author Brian Wing Shun Chan
30   */
31  public class ActionRequestFactory {
32  
33      public static ActionRequestImpl create(
34              HttpServletRequest request, Portlet portlet,
35              InvokerPortlet invokerPortlet, PortletContext portletContext,
36              WindowState windowState, PortletMode portletMode,
37              PortletPreferences preferences, long plid)
38          throws Exception {
39  
40          ActionRequestImpl actionRequestImpl = new ActionRequestImpl();
41  
42          actionRequestImpl.init(
43              request, portlet, invokerPortlet, portletContext, windowState,
44              portletMode, preferences, plid);
45  
46          return actionRequestImpl;
47      }
48  
49  }