fi.hut.tml.xsmiles.comm.session
Interface Session

All Superinterfaces:
CommEventSender
All Known Implementing Classes:
JxtaSession, SipSession

public interface Session
extends CommEventSender

Session package and class include session specific information, such as the user list of a P2P group, file shares in that particular group and so on. The session can be opened for a single user or for a group (depending on the underlying P2P network architecture, of course).

Author:
ssundell

Method Summary
 void accept()
          Accept the incoming session
 void closeSession()
          Close the session.
 Messaging createMessaging()
           
 void decline()
          Decline the incoming dession.
 Contact getTarget()
          Get the target of the session - that is, the user or group that we're connected to.
 java.util.Vector getUsers()
          Returns the user list for the current session.
 void openSession(Contact _contact)
          Opens the session - in other words, tries to establish a contact to the network.
 
Methods inherited from interface fi.hut.tml.xsmiles.comm.events.CommEventSender
addEventListener, dispatchEvent, removeEventListener
 

Method Detail

openSession

public void openSession(Contact _contact)
Opens the session - in other words, tries to establish a contact to the network.


closeSession

public void closeSession()
Close the session.


getUsers

public java.util.Vector getUsers()
Returns the user list for the current session.

Returns:
User list

getTarget

public Contact getTarget()
Get the target of the session - that is, the user or group that we're connected to.

Returns:

accept

public void accept()
Accept the incoming session


decline

public void decline()
Decline the incoming dession.


createMessaging

public Messaging createMessaging()


X-Smiles 1.2