1 package org.exoplatform.services.portletcontainer.test.portlet; 2 3 import javax.portlet.*; 4 import java.io.IOException ; 5 import java.io.PrintWriter ; 6 7 11 12 19 public class PortletToTestModeSupport implements Portlet{ 20 21 public void init(PortletConfig portletConfig) throws PortletException { 22 } 23 24 public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws PortletException, IOException { 25 } 26 27 public void render(RenderRequest renderRequest, RenderResponse renderResponse) throws PortletException, IOException { 28 renderResponse.setContentType("text/html"); 30 PortletURL pURL = renderResponse.createRenderURL(); 31 pURL.setPortletMode(PortletMode.VIEW); 32 pURL.setPortletMode(PortletMode.HELP); 33 pURL.setPortletMode(new PortletMode("config")); 34 35 pURL.setPortletMode(PortletMode.EDIT); 36 } 37 38 public void destroy() { 39 } 41 } 42 | Popular Tags |