KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > portlets > wsrp > UIWSRPConfig


1 /*
2 * Copyright 2001-2004 The eXo platform SARL All rights reserved.
3 * Please look at license.txt in info directory for more license detail.
4 */

5
6 package org.exoplatform.portlets.wsrp;
7
8 import java.util.*;
9 import java.io.IOException JavaDoc;
10 import java.io.Writer JavaDoc ;
11 import javax.portlet.* ;
12 import javax.portlet.PortletSession;
13
14 import org.apache.commons.logging.Log;
15 import org.exoplatform.services.wsrp.consumer.*;
16 /*
17  * A part of the business logic of this portlet was taken from the WSRP4J project
18  * @author Tuan Nguyne
19  * tuan08@users.sourceforge.net
20  * Tue, Feb 24, 2004 @ 14:35
21  */

22 public class UIWSRPConfig {
23   private Log log_ ;
24   private UIProducers uiProducers_ ;
25   
26   public UIWSRPConfig(ConsumerEnvironment env, Log log) throws Exception JavaDoc {
27     log_ = log ;
28     ProducerRegistry pregistry = env.getProducerRegistry() ;
29     uiProducers_ = new UIProducers(pregistry, log) ;
30   }
31
32   public void render(RenderRequest request, RenderResponse response, ResourceBundle res) throws Exception JavaDoc {
33     uiProducers_.render(request, response, res) ;
34   }
35
36   public void processAction(ActionRequest request, ActionResponse response) throws Exception JavaDoc {
37     uiProducers_.processAction(request, response) ;
38   }
39 }
40
Popular Tags