KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

18 public class PortletWithRuntimeExceptionWhileProcessActionAndRender implements Portlet{
19
20   public void init(PortletConfig portletConfig) throws PortletException {
21   }
22
23   public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws PortletException, IOException JavaDoc {
24         throw new RuntimeException JavaDoc("runtime exception in processAction");
25   }
26
27   public void render(RenderRequest renderRequest, RenderResponse renderResponse) throws PortletException, IOException JavaDoc {
28         throw new RuntimeException JavaDoc("runtime exception in render");
29   }
30
31   public void destroy() {
32         throw new RuntimeException JavaDoc("runtime exception in destroy");
33   }
34
35 }
36
37
Popular Tags