1 16 package org.apache.cocoon.portal.wsrp.consumer; 17 18 import org.apache.avalon.framework.logger.Logger; 19 import org.apache.wsrp4j.consumer.PortletSession; 20 import org.apache.wsrp4j.consumer.driver.GenericGroupSessionImpl; 21 import org.apache.wsrp4j.exception.WSRPException; 22 23 31 public class GroupSessionImpl extends GenericGroupSessionImpl { 32 33 34 protected Logger logger; 35 36 48 public GroupSessionImpl(String groupID, String markupInterfaceURL, Logger logger) 49 throws WSRPException { 50 super(groupID, markupInterfaceURL); 51 this.logger = logger; 52 } 53 54 64 public PortletSession getPortletSession(String handle) { 65 if (handle == null) { 66 return null; 67 } 68 69 PortletSession portletSession = (PortletSession)portletSessions.get(handle); 70 if (portletSession == null) { 71 portletSession = new PortletSessionImpl(handle, this.logger); 72 addPortletSession(portletSession); 73 } 74 75 return portletSession; 76 } 77 } | Popular Tags |