public class SipAccountID extends AccountID
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPT_CLIST_PASSWORD
The name of the property under which the user may specify the XCAP user
password.
|
static java.lang.String |
OPT_CLIST_SERVER_URI
The name of the property under which the user may specify the contact
list server uri.
|
static java.lang.String |
OPT_CLIST_USE_SIP_CREDETIALS
The name of the property under which the user may specify whether to use
original sip credentials for the contact list.
|
static java.lang.String |
OPT_CLIST_USER
The name of the property under which the user may specify the XCAP user.
|
static java.lang.String |
XCAP_ENABLE
The name of the property under which the user may specify whether to use
or not XCAP.
|
static java.lang.String |
XIVO_ENABLE
The name of the property under which the user may specify whether to use
or not xivo.
|
accountProperties, DEFAULTS_PREFIX
Modifier | Constructor and Description |
---|---|
|
SipAccountID()
Default constructor for wizard purposes.
|
protected |
SipAccountID(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 |
---|---|
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 |
getClistOptionPassword()
Gets the contact list password.
|
java.lang.String |
getClistOptionServerUri()
Gets the contact list server uri.
|
java.lang.String |
getClistOptionUser()
Gets the contact list user.
|
static java.lang.String |
getDefaultStr(java.lang.String key) |
protected java.lang.String |
getDefaultString(java.lang.String key)
Gets default property value for given key.
|
java.lang.String |
getId()
Returns the UIN of the sip registration account.
|
java.lang.String |
getKeepAliveInterval()
Returns the keep alive interval.
|
java.lang.String |
getKeepAliveMethod()
Returns the keep alive method.
|
java.lang.String |
getPollingPeriod()
The offline contact polling period
|
java.lang.String |
getPreferredTransport()
Get the preferred transport.
|
java.lang.String |
getProtocolName()
Returns the protocol name
|
java.lang.String |
getProxy()
The proxy address
|
java.lang.String |
getProxyPort()
The port on the specified proxy
|
static java.lang.String |
getServerFromUserName(java.lang.String userName)
Return the server part of the sip user name.
|
java.lang.String |
getSubscriptionExpiration()
The default expiration of subscriptions
|
java.lang.String |
getVoicemailCheckURI()
The voicemail check URI.
|
java.lang.String |
getVoicemailURI()
The voicemail URI.
|
boolean |
isClistOptionUseSipCredentials()
Checks if contact list has to use SIP account credentials.
|
boolean |
isEnablePresence()
If the presence is enabled
|
boolean |
isForceP2PMode()
If the p2p mode is forced
|
boolean |
isMessageWaitingIndicationsEnabled()
Check if messageWaitingIndications is enabled
|
boolean |
isProxyAutoConfigure()
Is proxy auto configured.
|
boolean |
isProxyForceBypassConfigure()
Is proxy force bypass configured.
|
boolean |
isXCapEnable()
Checks if XCAP is enabled.
|
boolean |
isXiVOEnable()
Checks if XiVO option is enabled.
|
void |
setClistOptionPassword(java.lang.String clistOptionPassword)
Sets the contact list password.
|
void |
setClistOptionServerUri(java.lang.String clistOptionServerUri)
Sets the contact list server uri.
|
void |
setClistOptionUser(java.lang.String clistOptionUser)
Sets the contact list user.
|
void |
setClistOptionUseSipCredentials(boolean useSipCredentials)
Sets if contact list has to use SIP account credentials.
|
void |
setEnablePresence(boolean enablePresence)
Sets if the presence is enabled
|
void |
setForceP2PMode(boolean forceP2PMode)
Sets if we have to force the p2p mode
|
void |
setKeepAliveInterval(java.lang.String keepAliveInterval)
Sets the keep alive interval.
|
void |
setKeepAliveMethod(java.lang.String keepAliveMethod)
Sets the keep alive method.
|
void |
setMessageWaitingIndications(boolean messageWaitingIndications)
Sets message waiting indications.
|
void |
setPollingPeriod(java.lang.String pollingPeriod)
Sets the offline contacts polling period
|
void |
setPreferredTransport(java.lang.String preferredTransport)
Sets the preferred transport for this account identifier.
|
void |
setProxy(java.lang.String proxy)
Set new proxy address
|
void |
setProxyAutoConfigure(boolean proxyAutoConfigure)
Sets auto configuration of proxy enabled or disabled.
|
void |
setProxyForceBypassConfigure(boolean proxyForceBypassConfigure)
Sets force bypass configuration of proxy enabled or disabled.
|
void |
setProxyPort(java.lang.String port)
Sets the proxy port.
|
void |
setSubscriptionExpiration(java.lang.String subscriptionExpiration)
Sets the subscription expiration value
|
void |
setUserID(java.lang.String id)
Sets the identifier of the sip registration account.
|
void |
setVoicemailCheckURI(java.lang.String voicemailCheckURI)
Sets voicemail check URI.
|
void |
setVoicemailURI(java.lang.String voicemailURI)
Sets voicemail URI.
|
void |
setXCapEnable(boolean xCapEnable)
Sets if XCAP is enable.
|
void |
setXiVOEnable(boolean xivoEnable)
Sets if XiVO option is enable.
|
equals, getAccountIconPath, getAccountProperties, getAccountPropertyBoolean, getAccountPropertyInt, getAccountPropertyString, getAccountPropertyString, getAccountUniqueID, getAuthorizationName, getBooleanPropertiesByPrefix, getDisplayName, getDTMFMethod, getDtmfMinimalToneDuration, getIntegerPropertiesByPrefix, getPassword, getPropertyNamesByPrefix, getProtocolDisplayName, getProtocolIconPath, getServerAddress, getServerPort, getService, getSortedEnabledEncryptionProtocolList, getStunServers, getSystemProtocolName, 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 XCAP_ENABLE
public static final java.lang.String XIVO_ENABLE
public static final java.lang.String OPT_CLIST_USE_SIP_CREDETIALS
public static final java.lang.String OPT_CLIST_SERVER_URI
public static final java.lang.String OPT_CLIST_USER
public static final java.lang.String OPT_CLIST_PASSWORD
protected SipAccountID(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.public SipAccountID()
public java.lang.String getProxy()
public void setProxy(java.lang.String proxy)
proxy
- the proxy address to setpublic java.lang.String getId()
public java.lang.String getPreferredTransport()
public void setPreferredTransport(java.lang.String preferredTransport)
preferredTransport
- the preferred transport for this account
identifier.public java.lang.String getProxyPort()
public void setUserID(java.lang.String id)
id
- the identifier of the sip registration account.public boolean isProxyAutoConfigure()
public void setProxyAutoConfigure(boolean proxyAutoConfigure)
proxyAutoConfigure
- true if the proxy will be
auto configured.public boolean isProxyForceBypassConfigure()
public void setProxyForceBypassConfigure(boolean proxyForceBypassConfigure)
proxyForceBypassConfigure
- true if the proxy will bypassed
needed for HA scenarios with load balancing.public void setProxyPort(java.lang.String port)
port
- intpublic boolean isEnablePresence()
public boolean isForceP2PMode()
public java.lang.String getPollingPeriod()
public java.lang.String getSubscriptionExpiration()
public void setEnablePresence(boolean enablePresence)
enablePresence
- if the presence is enabledpublic void setForceP2PMode(boolean forceP2PMode)
forceP2PMode
- if we have to force the p2p modepublic void setPollingPeriod(java.lang.String pollingPeriod)
pollingPeriod
- the offline contacts polling periodpublic void setSubscriptionExpiration(java.lang.String subscriptionExpiration)
subscriptionExpiration
- the subscription expiration valuepublic java.lang.String getKeepAliveMethod()
public void setKeepAliveMethod(java.lang.String keepAliveMethod)
keepAliveMethod
- the keep alive method to setpublic java.lang.String getKeepAliveInterval()
public void setKeepAliveInterval(java.lang.String keepAliveInterval)
keepAliveInterval
- the keep alive interval to setpublic boolean isXCapEnable()
public void setXCapEnable(boolean xCapEnable)
xCapEnable
- XCAP enable.public boolean isXiVOEnable()
public void setXiVOEnable(boolean xivoEnable)
xivoEnable
- XiVO enable.public boolean isClistOptionUseSipCredentials()
public void setClistOptionUseSipCredentials(boolean useSipCredentials)
useSipCredentials
- if the clist has to use SIP account credentials.public java.lang.String getClistOptionServerUri()
public void setClistOptionServerUri(java.lang.String clistOptionServerUri)
clistOptionServerUri
- the contact list server uri.public java.lang.String getClistOptionUser()
public void setClistOptionUser(java.lang.String clistOptionUser)
clistOptionUser
- the contact list user.public java.lang.String getClistOptionPassword()
public void setClistOptionPassword(java.lang.String clistOptionPassword)
clistOptionPassword
- the contact list password.public java.lang.String getVoicemailURI()
public void setVoicemailURI(java.lang.String voicemailURI)
voicemailURI
- new URI.public java.lang.String getVoicemailCheckURI()
public void setVoicemailCheckURI(java.lang.String voicemailCheckURI)
voicemailCheckURI
- new URI.public boolean isMessageWaitingIndicationsEnabled()
public void setMessageWaitingIndications(boolean messageWaitingIndications)
messageWaitingIndications
- true to enable message waiting
indications.public java.lang.String getProtocolName()
getProtocolName
in class AccountID
public java.lang.String getAccountAddress()
getAccountAddress
in class AccountID
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)
public static java.lang.String getServerFromUserName(java.lang.String userName)
userName
- the username.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.