org.apache.cocoon.portal.wsrp.consumer
Class SessionHandlerImpl

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.portal.wsrp.consumer.SessionHandlerImpl
All Implemented Interfaces:
LogEnabled, RequiresConsumerEnvironment, org.apache.wsrp4j.consumer.SessionHandler

public class SessionHandlerImpl
extends AbstractLogEnabled
implements org.apache.wsrp4j.consumer.SessionHandler, RequiresConsumerEnvironment

Simple Session Handler

Version:
$Id: SessionHandlerImpl.java 322475 2005-10-16 14:26:44Z cziegeler $

Field Summary
protected  org.apache.wsrp4j.consumer.ConsumerEnvironment consumerEnv
          The consumerEnvironment
protected  Hashtable userSessions
          Holds all user-sessions
 
Constructor Summary
SessionHandlerImpl()
           
 
Method Summary
 org.apache.wsrp4j.consumer.UserSessionMgr getUserSession(String producerID, String userID)
          Get the session manager of the user session with the given user ID and producer ID
 void setConsumerEnvironment(org.apache.wsrp4j.consumer.ConsumerEnvironment env)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userSessions

protected Hashtable userSessions
Holds all user-sessions


consumerEnv

protected org.apache.wsrp4j.consumer.ConsumerEnvironment consumerEnv
The consumerEnvironment

Constructor Detail

SessionHandlerImpl

public SessionHandlerImpl()
Method Detail

setConsumerEnvironment

public void setConsumerEnvironment(org.apache.wsrp4j.consumer.ConsumerEnvironment env)
Specified by:
setConsumerEnvironment in interface RequiresConsumerEnvironment
See Also:
RequiresConsumerEnvironment.setConsumerEnvironment(org.apache.wsrp4j.consumer.ConsumerEnvironment)

getUserSession

public org.apache.wsrp4j.consumer.UserSessionMgr getUserSession(String producerID,
                                                                String userID)
                                                         throws org.apache.wsrp4j.exception.WSRPException
Get the session manager of the user session with the given user ID and producer ID

Specified by:
getUserSession in interface org.apache.wsrp4j.consumer.SessionHandler
Returns:
The user session object representing a session between an end-user and a producer.
Throws:
org.apache.wsrp4j.exception.WSRPException


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.