KickJava   Java API By Example, From Geeks To Geeks.

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


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: 01:01:47
17  */

18 public class PortletWithNonPermanentUnavailibiltyInProcessActionAndRender 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 UnavailableException("Non Permanent unavailable exception", 2);
25   }
26
27   public void render(RenderRequest renderRequest, RenderResponse renderResponse) throws PortletException, IOException JavaDoc {
28         throw new UnavailableException("Non Permanent unavailable exception", 2);
29   }
30
31   public void destroy() {
32   }
33
34 }
35
Popular Tags