fi.hut.tml.xsmiles.comm.implementation.general
Class ContactBase
java.lang.Object
fi.hut.tml.xsmiles.comm.implementation.general.events.CommEventSenderBase
fi.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
|
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
infoTable
protected java.util.Hashtable infoTable
ContactBase
public ContactBase()
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 informationvalue - 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