KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portletcontainer > test > portlet > PortletToTestModeSupport


1 package org.exoplatform.services.portletcontainer.test.portlet;
2
3 import javax.portlet.*;
4 import java.io.IOException JavaDoc;
5 import java.io.PrintWriter JavaDoc;
6
7 /**
8  * Copyright 2001-2003 The eXo Platform SARL All rights reserved.
9  * Please look at license.txt in info directory for more license detail.
10  **/

11
12 /**
13  * Created by The eXo Platform SARL .
14  * Author : Mestrallet Benjamin
15  * benjmestrallet@users.sourceforge.net
16  * Date: 16 oct. 2003
17  * Time: 01:44:04
18  */

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 JavaDoc {
25     }
26
27     public void render(RenderRequest renderRequest, RenderResponse renderResponse) throws PortletException, IOException JavaDoc {
28         /////test (xxxii)
29
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         //To change body of implemented methods use Options | File Templates.
40
}
41 }
42
Popular Tags