sdt.mediator
Class SessionManagerClient

java.lang.Object
  extended by sdt.mediator.SessionManagerClient
All Implemented Interfaces:
ISessionManagerClient

public class SessionManagerClient
extends java.lang.Object
implements ISessionManagerClient

This is a default implementation of a session manager client. All methods simply print a message. initiate returns false. (i.e., no interest in network-initiated calls)


Constructor Summary
SessionManagerClient()
           
 
Method Summary
 ISessionManager getSessionManager()
          returns the identity of the session manager for this application.
 boolean initiate(PartyURI caller, PartyURI callee)
          this method is called for an intercepted call attempt: 'from' calling 'to'.
 void register(PartyURI caller)
          this method is called when a user attempts to register with this application.
 void setSessionManager(ISessionManager sm0)
          set the session manager to be used by the client
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionManagerClient

public SessionManagerClient()
Method Detail

setSessionManager

public final void setSessionManager(ISessionManager sm0)
Description copied from interface: ISessionManagerClient
set the session manager to be used by the client

Specified by:
setSessionManager in interface ISessionManagerClient

getSessionManager

public final ISessionManager getSessionManager()
Description copied from interface: ISessionManagerClient
returns the identity of the session manager for this application.

Specified by:
getSessionManager in interface ISessionManagerClient

initiate

public boolean initiate(PartyURI caller,
                        PartyURI callee)
                 throws SDTException
Description copied from interface: ISessionManagerClient
this method is called for an intercepted call attempt: 'from' calling 'to'.

Specified by:
initiate in interface ISessionManagerClient
Returns:
indicates whether this application wants to handle the call. This is useful when the SM has references to a number of applications: the first one to indicate interest gets control of the call; otherwise, the call is completed as usual.
Throws:
SDTException

register

public void register(PartyURI caller)
              throws SDTException
Description copied from interface: ISessionManagerClient
this method is called when a user attempts to register with this application.

Specified by:
register in interface ISessionManagerClient
Throws:
SDTException