fi.hut.tml.xsmiles.comm.implementation.sip
Class SipUser

java.lang.Object
  extended byfi.hut.tml.xsmiles.comm.implementation.general.events.CommEventSenderBase
      extended byfi.hut.tml.xsmiles.comm.implementation.general.ContactBase
          extended byfi.hut.tml.xsmiles.comm.implementation.sip.SipUser
All Implemented Interfaces:
CommEventSender, Contact, Presentity, fi.hut.tml.sip.stack.events.SipEventsListener, User

public class SipUser
extends ContactBase
implements User, Presentity, fi.hut.tml.sip.stack.events.SipEventsListener

Author:
ssundell To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
 
Fields inherited from class fi.hut.tml.xsmiles.comm.implementation.general.ContactBase
infoTable
 
Constructor Summary
SipUser()
           
SipUser(java.lang.String name, java.lang.String address, java.lang.String image)
           
 
Method Summary
 boolean authorize()
           
 Session connect()
           
 Presentity getPresentity()
          create presentity object
 void incomingEvent(int type, java.lang.String description)
           
 void publish(org.w3c.dom.Node _status)
           
 void remove()
           
 void statusChange()
          This method is called when the presence information for one or another subscription changes.
 void subscribe(PresenceListener _listener)
           
 
Methods inherited from class fi.hut.tml.xsmiles.comm.implementation.general.ContactBase
getKeys, getName, getValue, sendEvent, setValue
 
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.Contact
getKeys, getName, getValue, setValue
 
Methods inherited from interface fi.hut.tml.xsmiles.comm.events.CommEventSender
addEventListener, dispatchEvent, removeEventListener
 

Constructor Detail

SipUser

public SipUser()

SipUser

public SipUser(java.lang.String name,
               java.lang.String address,
               java.lang.String image)
Method Detail

connect

public Session connect()
Specified by:
connect in interface Contact
Specified by:
connect in class ContactBase

subscribe

public void subscribe(PresenceListener _listener)
Specified by:
subscribe in interface Presentity

remove

public void remove()
Specified by:
remove in interface Presentity

publish

public void publish(org.w3c.dom.Node _status)
Specified by:
publish in interface Presentity

statusChange

public void statusChange()
This method is called when the presence information for one or another subscription changes. It copies the nodes from a status element into the comm namespace and under "presence" element. After that it calls the presence listeners.

Specified by:
statusChange in interface fi.hut.tml.sip.stack.events.SipEventsListener

authorize

public boolean authorize()
Specified by:
authorize in interface fi.hut.tml.sip.stack.events.SipEventsListener

incomingEvent

public void incomingEvent(int type,
                          java.lang.String description)
Specified by:
incomingEvent in interface fi.hut.tml.sip.stack.events.SipEventsListener

getPresentity

public Presentity getPresentity()
Description copied from interface: User
create presentity object

Specified by:
getPresentity in interface User


X-Smiles 1.2