edu.uci.isr.yancees.server
Class ProtocolFacade

java.lang.Object
  extended byedu.uci.isr.yancees.server.AdministrationFacade
      extended byedu.uci.isr.yancees.server.ProtocolFacade

public class ProtocolFacade
extends AdministrationFacade

This class deals with generic messages, that are parserd by installed protocol plug-ins. For example, mobility, authentication and so on. This class stays behind the YanceesServer class


Method Summary
 ServerProtocolSession createNewSession(MessageInterface msg, SubscriberInterface si)
          Creates a new ProtocolSession which is initialized according to the message provided.
protected static ProtocolFacade getInstance()
           
protected  void setProtocolManager(ProtocolManager pm)
          Used by the Yancees API to initialize this API.
 
Methods inherited from class edu.uci.isr.yancees.server.AdministrationFacade
resumeYancees, shutdownYancess, suspendYancees
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

protected static ProtocolFacade getInstance()

createNewSession

public ServerProtocolSession createNewSession(MessageInterface msg,
                                              SubscriberInterface si)
                                       throws YanceesException
Creates a new ProtocolSession which is initialized according to the message provided. The messages of this session need now to be provided using the created ProtocolSession object. The responses, specific to this protocol, are directed to the provided ProtocolListenerInterface. the data, the events collected or generated by producers, are diverget to the SubscriberInterface.

Parameters:
msg - is the initialization message of the session
si - is the subscriber interface, to receive data events.
Returns:
a ProtocolSession that controls the created context.
Throws:
YanceesException - if the protocol is not recognized as valid.

setProtocolManager

protected void setProtocolManager(ProtocolManager pm)
Used by the Yancees API to initialize this API.

Parameters:
pm - is the instance of the protocol manager to be used by this component