fi.hut.tml.xsmiles.comm.implementation.general
Class ContactBase

java.lang.Object
  extended byfi.hut.tml.xsmiles.comm.implementation.general.events.CommEventSenderBase
      extended byfi.hut.tml.xsmiles.comm.implementation.general.ContactBase
All Implemented Interfaces:
CommEventSender, Contact
Direct Known Subclasses:
JxtaGroup, JxtaPeer, SipUser

public abstract class ContactBase
extends CommEventSenderBase
implements Contact

Author:
qlin, ssundell

Field Summary
protected  java.util.Hashtable infoTable
           
 
Constructor Summary
ContactBase()
           
 
Method Summary
abstract  Session connect()
           
 java.util.Enumeration getKeys()
          Get keys to the information stored in the user object.
 java.lang.String getName()
           
 java.lang.Object getValue(java.lang.String key)
           
protected  void sendEvent(int type)
           
 void setValue(java.lang.String key, java.lang.Object value)
          Set the information
 
Methods inherited from class fi.hut.tml.xsmiles.comm.implementation.general.events.CommEventSenderBase
addEventListener, dispatchEvent, removeEventListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fi.hut.tml.xsmiles.comm.events.CommEventSender
addEventListener, dispatchEvent, removeEventListener
 

Field Detail

infoTable

protected java.util.Hashtable infoTable
Constructor Detail

ContactBase

public ContactBase()
Method Detail

connect

public abstract Session connect()
Specified by:
connect in interface Contact

getKeys

public java.util.Enumeration getKeys()
Description copied from interface: Contact
Get keys to the information stored in the user object.

Specified by:
getKeys in interface Contact
Returns:
Enumeration of the keys

setValue

public void setValue(java.lang.String key,
                     java.lang.Object value)
Description copied from interface: Contact
Set the information

Specified by:
setValue in interface Contact
Parameters:
key - Key to the information
value - Value of the information

getValue

public java.lang.Object getValue(java.lang.String key)
Specified by:
getValue in interface Contact

getName

public java.lang.String getName()
Specified by:
getName in interface Contact

sendEvent

protected void sendEvent(int type)


X-Smiles 1.2