1 16 package org.apache.cocoon.portal.wsrp.consumer; 17 18 import java.util.Hashtable ; 19 20 import org.apache.avalon.framework.logger.Logger; 21 import org.apache.wsrp4j.consumer.GroupSessionMgr; 22 import org.apache.wsrp4j.consumer.driver.GenericUserSessionImpl; 23 import org.apache.wsrp4j.exception.WSRPException; 24 25 36 public class UserSessionImpl extends GenericUserSessionImpl { 37 38 39 protected final Logger logger; 40 41 50 public UserSessionImpl(String producerID, 51 String userID, 52 String markupURL, 53 Logger logger) 54 throws WSRPException { 55 super(producerID, userID, markupURL); 56 this.logger = logger; 57 this.setGroupSessionTable(new Hashtable ()); 58 } 59 60 66 public GroupSessionMgr getGroupSession(String groupID) throws WSRPException { 67 GroupSessionMgr groupSession = null; 68 if (groupID != null) { 69 groupSession = (GroupSessionMgr)this.groupSessions.get(groupID); 70 if (groupSession == null) { 71 groupSession = new GroupSessionImpl(groupID, this.getMarkupInterfaceURL(), this.logger); 72 addGroupSession(groupSession); 73 } 74 } 75 return groupSession; 76 } 77 } 78 | Popular Tags |