Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

java.lang.Object
  extended by net.java.sip.communicator.service.protocol.AccountID
      extended by net.java.sip.communicator.impl.protocol.jabber.JabberAccountID

public class JabberAccountID
extends AccountID

The Jabber implementation of a sip-communicator AccountID

Author:
Damian Minkov, Sebastien Vincent

Field Summary
 
Fields inherited from class net.java.sip.communicator.service.protocol.AccountID
accountProperties
 
Constructor Summary
JabberAccountID(String id, Map<String,String> accountProperties)
          Creates an account id from the specified id and account properties.
 
Method Summary
 boolean allowNonSecureConnection()
          Determines whether this account's provider allow non-secure connection
 List<JingleNodeDescriptor> getJingleNodes()
          Returns the list of JingleNodes trackers/relays that this account is currently configured to use.
 List<StunServerDescriptor> getStunServers()
          Returns the list of STUN servers that this account is currently configured to use.
 boolean isJingleNodesAutoDiscoveryEnabled()
          Determines whether this account's provider is supposed to auto discover JingleNodes relay.
 boolean isJingleNodesRelayEnabled()
          Determines whether this account's provider uses JingleNodes relay (if available).
 boolean isStunServerDiscoveryEnabled()
          Determines whether this account's provider is supposed to auto discover STUN and TURN servers.
 boolean isUPNPEnabled()
          Determines whether this account's provider uses UPnP (if available).
 boolean isUseDefaultStunServer()
          Determines whether this account's provider uses the default STUN server provided by SIP Communicator if there is no other STUN/TURN server discovered/configured.
 
Methods inherited from class net.java.sip.communicator.service.protocol.AccountID
equals, getAccountAddress, getAccountProperties, getAccountProperty, getAccountPropertyBoolean, getAccountPropertyInt, getAccountPropertyString, getAccountUniqueID, getDisplayName, getProtocolDisplayName, getProtocolName, getService, getUserID, hashCode, isEnabled, putAccountProperty, removeAccountProperty, setAccountProperties, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JabberAccountID

JabberAccountID(String id,
                Map<String,String> accountProperties)
Creates an account id from the specified id and account properties.

Parameters:
id - the id identifying this account
accountProperties - any other properties necessary for the account.
Method Detail

getStunServers

public List<StunServerDescriptor> getStunServers()
Returns the list of STUN servers that this account is currently configured to use.

Returns:
the list of STUN servers that this account is currently configured to use.

isStunServerDiscoveryEnabled

public boolean isStunServerDiscoveryEnabled()
Determines whether this account's provider is supposed to auto discover STUN and TURN servers.

Returns:
true if this provider would need to discover STUN/TURN servers and false otherwise.

isUseDefaultStunServer

public boolean isUseDefaultStunServer()
Determines whether this account's provider uses the default STUN server provided by SIP Communicator if there is no other STUN/TURN server discovered/configured.

Returns:
true if this provider would use the default STUN server, false otherwise

getJingleNodes

public List<JingleNodeDescriptor> getJingleNodes()
Returns the list of JingleNodes trackers/relays that this account is currently configured to use.

Returns:
the list of JingleNodes trackers/relays that this account is currently configured to use.

isJingleNodesAutoDiscoveryEnabled

public boolean isJingleNodesAutoDiscoveryEnabled()
Determines whether this account's provider is supposed to auto discover JingleNodes relay.

Returns:
true if this provider would need to discover JingleNodes relay, false otherwise

isJingleNodesRelayEnabled

public boolean isJingleNodesRelayEnabled()
Determines whether this account's provider uses JingleNodes relay (if available).

Returns:
true if this provider would use JingleNodes relay (if available), false otherwise

isUPNPEnabled

public boolean isUPNPEnabled()
Determines whether this account's provider uses UPnP (if available).

Returns:
true if this provider would use UPnP (if available), false otherwise

allowNonSecureConnection

public boolean allowNonSecureConnection()
Determines whether this account's provider allow non-secure connection

Returns:
true if this provider would allow non-secure connection, false otherwise

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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