|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hamsam.api.Conference
A conference is a communication mechanism by which more than two buddies can exchange messages with each other.
Not all protocols support conferences. To check whether a protocol supports
conferencing, use Protocol.isConferenceSupported()
method.
Constructor Summary | |
Conference(Protocol protocol,
Buddy host,
Buddy[] buddies)
Construct a conference. |
|
Conference(Protocol protocol,
Buddy host,
Buddy[] buddies,
java.lang.String message)
Start a new conference and invite buddies to join. |
Method Summary | |
void |
addParticipant(Buddy buddy)
Add a new participant to this conference object. |
Buddy |
getHost()
Returns the host buddy for this conference. |
Buddy[] |
getParticipants()
Returns all participants for this conference. |
Protocol |
getProtocol()
Returns the protocol for this conference. |
void |
quit()
Quit from this conference. |
void |
removeParticipant(Buddy buddy)
Removes a buddy from this conference object. |
void |
sendMessage(Message message)
Send a message to this conference. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Conference(Protocol protocol, Buddy host, Buddy[] buddies) throws UnsupportedOperationException, IllegalArgumentException
Conference(protocol,host,
buddies,message)
to start a new conference.
protocol
- the underlying protocol for this conference.host
- the buddy who is hosting this conference.buddies
- a list of all buddies participating in this conference,
including the host.
UnsupportedOperationException
- if the protocol does not support conferences.
IllegalArgumentException
- if the protocol for any of the participants is
different from the one specified.public Conference(Protocol protocol, Buddy host, Buddy[] buddies, java.lang.String message) throws UnsupportedOperationException, IllegalArgumentException, IllegalStateException
protocol
- the underlying protocol for this conference.host
- the buddy who is hosting this conference.buddies
- a list of all buddies participating in this conference,
including the host.message
- the invitation message that is to be sent to the participants.
UnsupportedOperationException
- if the protocol does not support conferences.
IllegalArgumentException
- if the protocol for any of the participants is
different from the one specified.
IllegalStateException
- if the protocol is not connected yetMethod Detail |
public void quit() throws UnsupportedOperationException, IllegalStateException
UnsupportedOperationException
- if the underlying protocol does not
support conferences.
IllegalStateException
- if the protocol is not connected yetpublic void sendMessage(Message message) throws UnsupportedOperationException, IllegalStateException
message
- the message to be sent.
UnsupportedOperationException
- if the underlying protocol does not
support conferences.
IllegalStateException
- if the protocol is not connected yetpublic void addParticipant(Buddy buddy)
buddy
- the buddy to be added to this conference.public Buddy[] getParticipants()
public Buddy getHost()
public Protocol getProtocol()
public void removeParticipant(Buddy buddy)
buddy
- the buddy to be removed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |