Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.sip
Class ConferenceMemberSipImpl

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.sip.ConferenceMemberSipImpl
All Implemented Interfaces:
ConferenceMember

public class ConferenceMemberSipImpl
extends AbstractConferenceMember

Implements ConferenceMember for the SIP protocol.

Author:
Lubomir Marinov

Field Summary
(package private) static String ALERTING
          A Public Switched Telephone Network (PSTN) ALERTING or SIP 180 Ringing was returned for the outbound call; endpoint is being alerted.
(package private) static String CONNECTED
          The endpoint is a participant in the conference.
(package private) static String DIALING_IN
          Endpoint is dialing into the conference, not yet in the roster (probably being authenticated).
(package private) 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).
(package private) static String DISCONNECTED
          The endpoint is not a participant in the conference, and no active dialog exists between the endpoint and the focus.
(package private) 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.
(package private) 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
ConferenceMemberSipImpl(CallPeerSipImpl conferenceFocusCallPeer, String address)
          Initializes a new ConferenceMemberSipImpl instance with a specific SIP address as indicated by the conference-info XML received from its conferenceFocusCallPeer.
 
Method Summary
 String getDisplayName()
          Overrides CallPeer.getDisplayName() in order to return the SIP 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

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

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

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

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

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

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

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

ConferenceMemberSipImpl

public ConferenceMemberSipImpl(CallPeerSipImpl conferenceFocusCallPeer,
                               String address)
Initializes a new ConferenceMemberSipImpl instance with a specific SIP address as indicated by the conference-info XML received from its conferenceFocusCallPeer.

Parameters:
conferenceFocusCallPeer - the CallPeer which is the focus of the conference in which the new ConferenceMember participates
address - the SIP address of the new instance
Method Detail

getDisplayName

public String getDisplayName()
Overrides CallPeer.getDisplayName() in order to return the SIP 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.