public class JabberAccountID extends AccountID
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANONYMOUS_AUTH
Uses anonymous XMPP login if set to true.
|
static java.lang.String |
BOSH_URL
Configures the URL which is to be used with BOSH transport.
|
static java.lang.String |
BYPASS_GTALK_CAPABILITIES
Always call with gtalk property.
|
static java.lang.String |
DEFAULT_STUN_PORT
The default value of stun server port for jabber accounts.
|
static java.lang.String |
GMAIL_NOTIFICATIONS_ENABLED
Indicates if gmail notifications should be enabled.
|
static java.lang.String |
GOOGLE_CONNECT_SRV
XMPP server for Google service.
|
static java.lang.String |
GOOGLE_CONTACTS_ENABLED
Indicates if Google Contacts should be enabled.
|
static java.lang.String |
GOOGLE_USER_SUFFIX
Account suffix for Google service.
|
static java.lang.String |
OVERRIDE_PHONE_SUFFIX
The override domain for phone call.
|
static java.lang.String |
SEND_KEEP_ALIVE
Indicates if keep alive packets should be send.
|
static java.lang.String |
TELEPHONY_BYPASS_GTALK_CAPS
Domain name that will bypass GTalk caps.
|
accountProperties, DEFAULTS_PREFIX
Constructor and Description |
---|
JabberAccountID()
Default constructor for serialization purposes.
|
JabberAccountID(java.lang.String id,
java.util.Map<java.lang.String,java.lang.String> accountProperties)
Creates an account id from the specified id and account properties.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowNonSecureConnection()
Determines whether this account's provider allow non-secure connection
|
java.lang.String |
getBoshUrl()
Returns the BOSH URL which should be used to connect to the XMPP server.
|
boolean |
getBypassGtalkCaps()
Returns the alwaysCallWithGtalk value.
|
static boolean |
getDefaultBool(java.lang.String key)
Gets default boolean property value for given key.
|
static java.lang.String |
getDefaultStr(java.lang.String key)
Gets default property value for given key.
|
protected java.lang.String |
getDefaultString(java.lang.String key)
Gets default property value for given key.
|
java.util.List<JingleNodeDescriptor> |
getJingleNodes()
Returns the list of JingleNodes trackers/relays that this account is
currently configured to use.
|
java.lang.String |
getOverridePhoneSuffix()
Returns the override phone suffix.
|
int |
getPriority()
Returns the priority property.
|
java.lang.String |
getResource()
Returns the resource.
|
java.lang.String |
getSmsServerAddress()
Returns the default sms server.
|
java.lang.String |
getSystemProtocolName()
Returns the actual name of this protocol:
ProtocolNames.JABBER . |
java.lang.String |
getTelephonyDomainBypassCaps()
Returns telephony domain that bypass GTalk caps.
|
boolean |
isAllowNonSecure()
Indicates if non-TLS is allowed for this account
|
boolean |
isAnonymousAuthUsed()
Indicates whether anonymous authorization method is used by this account.
|
boolean |
isAutoDiscoverJingleNodes()
Indicates if the JingleNodes relay server should be automatically
discovered.
|
boolean |
isAutoDiscoverStun()
Indicates if the stun server should be automatically discovered.
|
boolean |
isCarbonDisabled()
Indicates if message carbons are allowed for this account
|
boolean |
isGmailNotificationEnabled()
Determines whether SIP Communicator should be querying Gmail servers
for unread mail messages.
|
boolean |
isGoogleContactsEnabled()
Determines whether SIP Communicator should use Google Contacts as
ContactSource
|
boolean |
isJingleDisabled()
Gets if Jingle is disabled for this account.
|
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 |
isJingleNodesSearchBuddiesEnabled()
Determines whether this account's provider is supposed to auto discover
JingleNodes relay by searching our contacts.
|
boolean |
isResourceAutogenerated()
Is resource auto generate enabled.
|
boolean |
isSendKeepAlive()
Determines whether sending of keep alive packets is enabled.
|
boolean |
isUseIce()
Indicates if ice should be used for this account.
|
boolean |
isUseJingleNodes()
Indicates if JingleNodes relay should be used.
|
boolean |
isUseUPNP()
Indicates if UPnP should be used for this account.
|
void |
setAllowNonSecure(boolean isAllowNonSecure)
Sets the isAllowNonSecure property.
|
void |
setAutoDiscoverJingleNodes(boolean isAutoDiscover)
Sets the autoDiscoverJingleNodes property.
|
void |
setAutoDiscoverStun(boolean isAutoDiscover)
Sets the autoDiscoverStun property.
|
void |
setBoshUrl(java.lang.String boshPath)
Sets new URL which should be used for the BOSH transport.
|
void |
setBypassGtalkCaps(boolean bypassGtalkCaps)
Sets value for alwaysCallWithGtalk.
|
void |
setDisableCarbon(boolean isCarbonEnabled)
Sets the IS_CARBON_DISABLED property.
|
void |
setDisableJingle(boolean disabled)
Sets if Jingle is disabled for this account.
|
void |
setGmailNotificationEnabled(boolean enabled)
Specifies whether SIP Communicator should be querying Gmail servers
for unread mail messages.
|
void |
setGoogleContactsEnabled(boolean enabled)
Specifies whether SIP Communicator should use Google Contacts as
ContactSource.
|
void |
setOverridePhoneSufix(java.lang.String phoneSuffix)
Sets the override value of the phone suffix.
|
void |
setPriority(int priority)
Sets the priority property.
|
void |
setResource(java.lang.String resource)
Sets the resource.
|
void |
setResourceAutogenerated(boolean resourceAutogenerated)
Set whether resource autogenerate is enabled.
|
void |
setSendKeepAlive(boolean sendKeepAlive)
Specifies whether SIP Communicator should send send keep alive packets
to keep this account registered.
|
void |
setSmsServerAddress(java.lang.String serverAddress)
Sets the default sms server.
|
void |
setTelephonyDomainBypassCaps(java.lang.String text)
Sets telephony domain that bypass GTalk caps.
|
void |
setUseAnonymousAuth(boolean useAnonymousAuth)
Enables anonymous authorization mode on this XMPP account.
|
void |
setUseDefaultStunServer(boolean isUseDefaultStunServer)
Sets the useDefaultStunServer property.
|
void |
setUseIce(boolean isUseIce)
Sets the useIce property.
|
void |
setUseJingleNodes(boolean isUseJingleNodes)
Sets the useJingleNodes property.
|
void |
setUseUPNP(boolean isUseUPNP)
Sets the useUPNP property.
|
equals, getAccountAddress, getAccountIconPath, getAccountProperties, getAccountPropertyBoolean, getAccountPropertyInt, getAccountPropertyString, getAccountPropertyString, getAccountUniqueID, getAuthorizationName, getBooleanPropertiesByPrefix, getDisplayName, getDTMFMethod, getDtmfMinimalToneDuration, getIntegerPropertiesByPrefix, getPassword, getPropertyNamesByPrefix, getProtocolDisplayName, getProtocolIconPath, getProtocolName, getServerAddress, getServerPort, getService, getSortedEnabledEncryptionProtocolList, getStunServers, getTlsClientCertificate, getUserID, hashCode, isConfigHidden, isEnabled, isEncryptionProtocolEnabled, isHidden, isPreferredProvider, isReadOnly, isServerOverridden, isStatusMenuHidden, isStunServerDiscoveryEnabled, isUPNPEnabled, isUseDefaultStunServer, loadStunPassword, mergeProperties, putAccountProperty, putAccountProperty, removeAccountProperty, setAccountIconPath, setAccountProperties, setAuthorizationName, setDisplayName, setDTMFMethod, setDtmfMinimalToneDuration, setOrRemoveIfEmpty, setOrRemoveIfEmpty, setOrRemoveIfNull, setPassword, setProtocolIconPath, setServerAddress, setServerOverridden, setServerPort, setTlsClientCertificate, storeProperties, toString
public static final java.lang.String ANONYMOUS_AUTH
public static final java.lang.String BOSH_URL
public static final java.lang.String GOOGLE_USER_SUFFIX
public static final java.lang.String GOOGLE_CONNECT_SRV
public static final java.lang.String DEFAULT_STUN_PORT
public static final java.lang.String SEND_KEEP_ALIVE
public static final java.lang.String GMAIL_NOTIFICATIONS_ENABLED
public static final java.lang.String BYPASS_GTALK_CAPABILITIES
public static final java.lang.String GOOGLE_CONTACTS_ENABLED
public static final java.lang.String TELEPHONY_BYPASS_GTALK_CAPS
public static final java.lang.String OVERRIDE_PHONE_SUFFIX
public JabberAccountID(java.lang.String id, java.util.Map<java.lang.String,java.lang.String> accountProperties)
id
- the id identifying this accountaccountProperties
- any other properties necessary for the account.public JabberAccountID()
public java.lang.String getBoshUrl()
public void setBoshUrl(java.lang.String boshPath)
boshPath
- a String with the new BOSH URL or null
to disable BOSH.public java.lang.String getOverridePhoneSuffix()
public java.lang.String getSystemProtocolName()
ProtocolNames.JABBER
.getSystemProtocolName
in class AccountID
public boolean getBypassGtalkCaps()
public java.lang.String getTelephonyDomainBypassCaps()
public boolean isAnonymousAuthUsed()
public boolean isJingleDisabled()
public boolean isSendKeepAlive()
public boolean isGmailNotificationEnabled()
public boolean isGoogleContactsEnabled()
public void setUseAnonymousAuth(boolean useAnonymousAuth)
useAnonymousAuth
- true to use anonymous login.public void setOverridePhoneSufix(java.lang.String phoneSuffix)
phoneSuffix
- the phone name suffix (the domain name after the @
sign)public void setBypassGtalkCaps(boolean bypassGtalkCaps)
bypassGtalkCaps
- true to enable, false otherwisepublic void setTelephonyDomainBypassCaps(java.lang.String text)
text
- telephony domain to setpublic void setDisableJingle(boolean disabled)
disabled
- True if jingle is disabled for this account.
False otherwise.public void setSendKeepAlive(boolean sendKeepAlive)
sendKeepAlive
- true if we are to send keep alive packets
and false otherwise.public void setGmailNotificationEnabled(boolean enabled)
enabled
- true if we are to enable Gmail notification and
false otherwise.public void setGoogleContactsEnabled(boolean enabled)
enabled
- true if we are to enable Google Contacts and
false otherwise.public java.lang.String getResource()
public void setResource(java.lang.String resource)
resource
- the resource for the jabber accountpublic int getPriority()
public void setPriority(int priority)
priority
- the priority to setpublic boolean isUseIce()
public void setUseIce(boolean isUseIce)
isUseIce
- true to indicate that ICE should be used for
this account, false - otherwise.public boolean isAutoDiscoverStun()
public void setAutoDiscoverStun(boolean isAutoDiscover)
isAutoDiscover
- true to indicate that stun server should
be auto-discovered, false - otherwise.public void setUseDefaultStunServer(boolean isUseDefaultStunServer)
isUseDefaultStunServer
- true to indicate that default
stun server should be used if no others are available, false
otherwise.public void setAutoDiscoverJingleNodes(boolean isAutoDiscover)
isAutoDiscover
- true to indicate that relay server should
be auto-discovered, false - otherwise.public boolean isAutoDiscoverJingleNodes()
public void setUseJingleNodes(boolean isUseJingleNodes)
isUseJingleNodes
- true to indicate that Jingle Nodes
should be used for this account, false - otherwise.public boolean isUseJingleNodes()
public boolean isUseUPNP()
public void setUseUPNP(boolean isUseUPNP)
isUseUPNP
- true to indicate that UPnP should be used for
this account, false - otherwise.public boolean isAllowNonSecure()
public void setAllowNonSecure(boolean isAllowNonSecure)
isAllowNonSecure
- true to indicate that non-TLS is allowed
for this account, false - otherwise.public boolean isCarbonDisabled()
public void setDisableCarbon(boolean isCarbonEnabled)
isCarbonEnabled
- true to indicate that message carbons are
allowed for this account, false - otherwise.public boolean isResourceAutogenerated()
public void setResourceAutogenerated(boolean resourceAutogenerated)
resourceAutogenerated
- public java.lang.String getSmsServerAddress()
public void setSmsServerAddress(java.lang.String serverAddress)
serverAddress
- the sms server to set as defaultpublic java.util.List<JingleNodeDescriptor> getJingleNodes()
public boolean isJingleNodesAutoDiscoveryEnabled()
public boolean isJingleNodesSearchBuddiesEnabled()
public boolean isJingleNodesRelayEnabled()
public boolean allowNonSecureConnection()
protected java.lang.String getDefaultString(java.lang.String key)
getDefaultString
in class AccountID
key
- the property keypublic static java.lang.String getDefaultStr(java.lang.String key)
key
- the property keypublic static boolean getDefaultBool(java.lang.String key)
key
- the property key
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.