Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber
Class WhiteboardInvitationJabberImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.WhiteboardInvitationJabberImpl
All Implemented Interfaces:
WhiteboardInvitation

public class WhiteboardInvitationJabberImpl
extends Object
implements WhiteboardInvitation

The Jabber implementation of the WhiteboardInvitation interface.

Author:
Yana Stamcheva

Constructor Summary
WhiteboardInvitationJabberImpl(WhiteboardSession targetWhiteboard, WhiteboardObject firstWhiteboardObject, String inviter, String reason, byte[] password)
          Creates an invitation for the given targetWhiteboard, from the given inviter.
 
Method Summary
 String getInviter()
          Returns the inviter, who sent this invitation.
 String getReason()
          Returns the reason of the invitation.
 WhiteboardSession getTargetWhiteboard()
          Returns the WhiteboardSession, that this invitation is about.
 WhiteboardObject getWhiteboardInitialObject()
          Returns the first white-board object that the inviter would like to exchange with the user.
 byte[] getWhiteboardPassword()
          Returns the password to use in order to join the white-board, that this invitation is about.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhiteboardInvitationJabberImpl

public WhiteboardInvitationJabberImpl(WhiteboardSession targetWhiteboard,
                                      WhiteboardObject firstWhiteboardObject,
                                      String inviter,
                                      String reason,
                                      byte[] password)
Creates an invitation for the given targetWhiteboard, from the given inviter.

Parameters:
targetWhiteboard - the WhiteboardSession for which the invitation is
firstWhiteboardObject - the white-board object that inviter send with this invitation and which will be shown on the white-board if the user accepts the invitation
inviter - the WhiteboardParticipant, which sent the invitation
reason - the reason of the invitation
password - the password to use to join the given white-board
Method Detail

getTargetWhiteboard

public WhiteboardSession getTargetWhiteboard()
Returns the WhiteboardSession, that this invitation is about.

Specified by:
getTargetWhiteboard in interface WhiteboardInvitation
Returns:
the WhiteboardSession, that this invitation is about

getInviter

public String getInviter()
Returns the inviter, who sent this invitation.

Specified by:
getInviter in interface WhiteboardInvitation
Returns:
the inviter, who sent this invitation

getReason

public String getReason()
Returns the reason of the invitation.

Specified by:
getReason in interface WhiteboardInvitation
Returns:
the reason of the invitation

getWhiteboardPassword

public byte[] getWhiteboardPassword()
Returns the password to use in order to join the white-board, that this invitation is about.

Specified by:
getWhiteboardPassword in interface WhiteboardInvitation
Returns:
the password to use in order to join the white-board, that this invitation is about.

getWhiteboardInitialObject

public WhiteboardObject getWhiteboardInitialObject()
Returns the first white-board object that the inviter would like to exchange with the user. If the user accepts this invitation he/she should see this object on his white-board.

Returns:
the first white-board object

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.