001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.struts;
016    
017    import javax.portlet.ActionRequest;
018    import javax.portlet.ActionResponse;
019    import javax.portlet.PortletConfig;
020    import javax.portlet.RenderRequest;
021    import javax.portlet.RenderResponse;
022    import javax.portlet.ResourceRequest;
023    import javax.portlet.ResourceResponse;
024    
025    /**
026     * @author Mika Koivisto
027     */
028    public interface StrutsPortletAction {
029    
030            public void processAction(
031                            PortletConfig portletConfig, ActionRequest actionRequest,
032                            ActionResponse actionResponse)
033                    throws Exception;
034    
035            public void processAction(
036                            StrutsPortletAction originalStrutsPortletAction,
037                            PortletConfig portletConfig, ActionRequest actionRequest,
038                            ActionResponse actionResponse)
039                    throws Exception;
040    
041            public String render(
042                            PortletConfig portletConfig, RenderRequest renderRequest,
043                            RenderResponse renderResponse)
044                    throws Exception;
045    
046            public String render(
047                            StrutsPortletAction originalStrutsPortletAction,
048                            PortletConfig portletConfig, RenderRequest renderRequest,
049                            RenderResponse renderResponse)
050                    throws Exception;
051    
052            public void serveResource(
053                            PortletConfig portletConfig, ResourceRequest resourceRequest,
054                            ResourceResponse resourceResponse)
055                    throws Exception;
056    
057            public void serveResource(
058                            StrutsPortletAction originalStrutsPortletAction,
059                            PortletConfig portletConfig, ResourceRequest resourceRequest,
060                            ResourceResponse resourceResponse)
061                    throws Exception;
062    
063    }