public class SipAccountIDImpl extends SipAccountID
OPT_CLIST_PASSWORD, OPT_CLIST_SERVER_URI, OPT_CLIST_USE_SIP_CREDETIALS, OPT_CLIST_USER, XCAP_ENABLE, XIVO_ENABLE
accountProperties, DEFAULTS_PREFIX
Modifier | Constructor and Description |
---|---|
protected |
SipAccountIDImpl(java.lang.String userID,
java.util.Map<java.lang.String,java.lang.String> accountProperties,
java.lang.String serverName)
Creates a SIP account id from the specified ide and account properties.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this account id.
|
java.lang.String |
getAccountAddress()
Returns a string that could be directly used (or easily converted to) an
address that other users of the procotol can use to communicate with us.
|
java.lang.String |
getAccountPropertyString(java.lang.Object key)
Returns the account property string corresponding to the given key.
|
java.lang.String |
getDisplayName()
The reason we need to override this method here comes from the fact
that the user id that is standardly returned by the parent method
is not sufficient for the user to distinguish this account from other
sip accounts with the same user name.
|
java.lang.String |
getSystemProtocolName()
Returns the actual name of this protocol:
ProtocolNames.SIP . |
(package private) static java.lang.String |
sipUriToUserAddress(java.lang.String sipUri)
Extracts the user address part from the given sipUri.
|
(package private) static java.lang.String |
sipUriToUserID(java.lang.String sipUri)
Extracts the user id part from the given sipUri.
|
getClistOptionPassword, getClistOptionServerUri, getClistOptionUser, getDefaultStr, getDefaultString, getId, getKeepAliveInterval, getKeepAliveMethod, getPollingPeriod, getPreferredTransport, getProtocolName, getProxy, getProxyPort, getServerFromUserName, getSubscriptionExpiration, getVoicemailCheckURI, getVoicemailURI, isClistOptionUseSipCredentials, isEnablePresence, isForceP2PMode, isMessageWaitingIndicationsEnabled, isProxyAutoConfigure, isProxyForceBypassConfigure, isXCapEnable, isXiVOEnable, setClistOptionPassword, setClistOptionServerUri, setClistOptionUser, setClistOptionUseSipCredentials, setEnablePresence, setForceP2PMode, setKeepAliveInterval, setKeepAliveMethod, setMessageWaitingIndications, setPollingPeriod, setPreferredTransport, setProxy, setProxyAutoConfigure, setProxyForceBypassConfigure, setProxyPort, setSubscriptionExpiration, setUserID, setVoicemailCheckURI, setVoicemailURI, setXCapEnable, setXiVOEnable
getAccountIconPath, getAccountProperties, getAccountPropertyBoolean, getAccountPropertyInt, getAccountPropertyString, getAccountUniqueID, getAuthorizationName, getBooleanPropertiesByPrefix, getDTMFMethod, getDtmfMinimalToneDuration, getIntegerPropertiesByPrefix, getPassword, getPropertyNamesByPrefix, getProtocolDisplayName, getProtocolIconPath, 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
protected SipAccountIDImpl(java.lang.String userID, java.util.Map<java.lang.String,java.lang.String> accountProperties, java.lang.String serverName)
userID
- the user id part of the SIP uri identifying this contact.accountProperties
- any other properties necessary for the account.serverName
- the name of the server that the user belongs to.static java.lang.String sipUriToUserID(java.lang.String sipUri)
sipUri
- the initial SIP URI from which we would like to extract
the user id partstatic java.lang.String sipUriToUserAddress(java.lang.String sipUri)
sipUri
- the initial SIP URI from which we would like to extract
the user id partpublic java.lang.String getAccountAddress()
getAccountAddress
in class SipAccountID
public java.lang.String getDisplayName()
getDisplayName
in class AccountID
public java.lang.String getSystemProtocolName()
ProtocolNames.SIP
.getSystemProtocolName
in class AccountID
public boolean equals(java.lang.Object obj)
equals
in class AccountID
obj
- the reference object with which to compare.AccountID.hashCode()
,
Hashtable
public java.lang.String getAccountPropertyString(java.lang.Object key)
getAccountPropertyString
in class AccountID
key
- the key, corresponding to the property string we're looking
for
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.