1 5 6 package org.exoplatform.services.portletcontainer.test.portlet; 7 8 import javax.portlet.*; 9 import java.io.IOException ; 10 import java.io.PrintWriter ; 11 12 18 19 public class PortletToTestGlobalCache extends GenericPortlet{ 20 21 public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) 22 throws PortletException, IOException { 23 actionResponse.setRenderParameter("status", "Everything is ok"); 24 } 25 26 public void render(RenderRequest renderRequest, RenderResponse renderResponse) 27 throws PortletException, IOException { 28 renderResponse.setContentType("text/html"); 29 PrintWriter w = renderResponse.getWriter(); 30 w.println("Everything is ok"); 31 } 32 33 } | Popular Tags |