--- /dev/null
+/**\r
+ * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.\r
+ *\r
+ * This library is free software; you can redistribute it and/or modify it under\r
+ * the terms of the GNU Lesser General Public License as published by the Free\r
+ * Software Foundation; either version 2.1 of the License, or (at your option)\r
+ * any later version.\r
+ *\r
+ * This library is distributed in the hope that it will be useful, but WITHOUT\r
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more\r
+ * details.\r
+ */\r
+\r
+package com.liferay.portlet;\r
+\r
+import com.liferay.portal.kernel.portlet.LiferayPortletURL;\r
+\r
+import javax.portlet.PortletRequest;\r
+\r
+import javax.servlet.http.HttpServletRequest;\r
+\r
+/**\r
+ * @author Brian Wing Shun Chan\r
+ */\r
+public class PortletURLFactoryImpl implements PortletURLFactory {\r
+\r
+ public LiferayPortletURL create(\r
+ HttpServletRequest request, String portletName, long plid,\r
+ String lifecycle) {\r
+\r
+ return new PortletURLImpl(request, portletName, plid, lifecycle);\r
+ }\r
+\r
+ public LiferayPortletURL create(\r
+ PortletRequest portletRequest, String portletName, long plid,\r
+ String lifecycle) {\r
+\r
+ return new PortletURLImpl(portletRequest, portletName, plid, lifecycle);\r
+ }\r
+\r
+ public LiferayPortletURL create(\r
+ HttpServletRequest request, String portletName, long plid,\r
+ String lifecycle, boolean isSearch) {\r
+\r
+ return new PortletURLImpl(request, portletName, plid, lifecycle, isSearch);\r
+ }\r
+}
\ No newline at end of file