Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

java.lang.Object
  extended by net.java.sip.communicator.util.event.PropertyChangeNotifier
      extended by net.java.sip.communicator.service.protocol.AbstractConferenceMember
          extended by net.java.sip.communicator.impl.protocol.jabber.ConferenceMemberJabberImpl
All Implemented Interfaces:
ConferenceMember

public class ConferenceMemberJabberImpl
extends AbstractConferenceMember

Represents a member and its details in a Jabber telephony conference managed by a CallPeer in its role as a conference focus.

Author:
Sebastien Vincent

Field Summary
static String ALERTING
          A Public Switched Telephone Network (PSTN) ALERTING or SIP 180 Ringing was returned for the outbound call; endpoint is being alerted.
static String CONNECTED
          The endpoint is a participant in the conference.
static String DIALING_IN
          Endpoint is dialing into the conference, not yet in the roster (probably being authenticated).
static String DIALING_OUT
          Focus has dialed out to connect the endpoint to the conference, but the endpoint is not yet in the roster (probably being authenticated).
static String DISCONNECTED
          The endpoint is not a participant in the conference, and no active dialog exists between the endpoint and the focus.
static String ON_HOLD
          Active signaling dialog exists between an endpoint and a focus, but endpoint is "on-hold" for this conference, i.e., he/she is neither "hearing" the conference mix nor is his/her media being mixed in the conference.
static String PENDING
          Endpoint is not yet in the session, but it is anticipated that he/she will join in the near future.
 
Fields inherited from interface net.java.sip.communicator.service.protocol.ConferenceMember
DISPLAY_NAME_PROPERTY_NAME, STATE_PROPERTY_NAME
 
Constructor Summary
ConferenceMemberJabberImpl(CallPeerJabberImpl callPeer, String address)
          Constructor.
 
Method Summary
 String getDisplayName()
          Overrides CallPeer.getDisplayName() in order to return the Jabber address of this ConferenceMember if the display name is empty.
(package private)  void setEndpointStatus(String endpointStatus)
          Sets the state property of this ConferenceMember by translating it from its conference-info XML endpoint status.
 
Methods inherited from class net.java.sip.communicator.service.protocol.AbstractConferenceMember
getAddress, getConferenceFocusCallPeer, getSSRC, getState, setDisplayName, setSSRC, setState
 
Methods inherited from class net.java.sip.communicator.util.event.PropertyChangeNotifier
addPropertyChangeListener, firePropertyChange, getPropertyChangeSource, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.java.sip.communicator.service.protocol.ConferenceMember
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

ALERTING

public static final String ALERTING
A Public Switched Telephone Network (PSTN) ALERTING or SIP 180 Ringing was returned for the outbound call; endpoint is being alerted.

See Also:
Constant Field Values

CONNECTED

public static final String CONNECTED
The endpoint is a participant in the conference. Depending on the media policies, he/she can send and receive media to and from other participants.

See Also:
Constant Field Values

DIALING_IN

public static final String DIALING_IN
Endpoint is dialing into the conference, not yet in the roster (probably being authenticated).

See Also:
Constant Field Values

DIALING_OUT

public static final String DIALING_OUT
Focus has dialed out to connect the endpoint to the conference, but the endpoint is not yet in the roster (probably being authenticated).

See Also:
Constant Field Values

DISCONNECTED

public static final String DISCONNECTED
The endpoint is not a participant in the conference, and no active dialog exists between the endpoint and the focus.

See Also:
Constant Field Values

ON_HOLD

public static final String ON_HOLD
Active signaling dialog exists between an endpoint and a focus, but endpoint is "on-hold" for this conference, i.e., he/she is neither "hearing" the conference mix nor is his/her media being mixed in the conference.

See Also:
Constant Field Values

PENDING

public static final String PENDING
Endpoint is not yet in the session, but it is anticipated that he/she will join in the near future.

See Also:
Constant Field Values
Constructor Detail

ConferenceMemberJabberImpl

public ConferenceMemberJabberImpl(CallPeerJabberImpl callPeer,
                                  String address)
Constructor.

Parameters:
callPeer - the CallPeer
address - address of the conference member
Method Detail

getDisplayName

public String getDisplayName()
Overrides CallPeer.getDisplayName() in order to return the Jabber address of this ConferenceMember if the display name is empty.

Specified by:
getDisplayName in interface ConferenceMember
Overrides:
getDisplayName in class AbstractConferenceMember
Returns:
if the displayName property of this instance is an empty String value, returns the address property of this instance; otherwise, returns the value of the displayName property of this instance

setEndpointStatus

void setEndpointStatus(String endpointStatus)
Sets the state property of this ConferenceMember by translating it from its conference-info XML endpoint status.

Parameters:
endpointStatus - the conference-info XML endpoint status of this ConferenceMember indicated by its conferenceFocusCallPeer

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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