public class ProtocolProviderFactoryJabberImpl extends ProtocolProviderFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IS_USE_JINGLE_NODES
Indicates if ICE should be used.
|
(package private) static org.jivesoftware.smack.provider.ProviderManager |
providerManager
Our provider manager instances.
|
ACCOUNT_DISPLAY_NAME, ACCOUNT_ICON_PATH, ACCOUNT_READ_ONLY_GROUPS, ACCOUNT_UID, AUTHORIZATION_NAME, AUTO_CHANGE_USER_NAME, AUTO_DISCOVER_JINGLE_NODES, AUTO_DISCOVER_STUN, AUTO_GENERATE_RESOURCE, CLIENT_TLS_CERTIFICATE, CUSAX_PROVIDER_ACCOUNT_PROP, DEFAULT_ENCRYPTION, DEFAULT_SIPZRTP_ATTRIBUTE, DISPLAY_NAME, DTMF_METHOD, DTMF_MINIMAL_TONE_DURATION, ENCODING_PROP_PREFIX, ENCRYPTION_PROTOCOL, ENCRYPTION_PROTOCOL_STATUS, FORCE_P2P_MODE, FORCE_PROXY_BYPASS, IS_ACCOUNT_CONFIG_HIDDEN, IS_ACCOUNT_DISABLED, IS_ACCOUNT_READ_ONLY, IS_ACCOUNT_STATUS_MENU_HIDDEN, IS_ALLOW_NON_SECURE, IS_CALLING_DISABLED_FOR_ACCOUNT, IS_CARBON_DISABLED, IS_DESKTOP_REMOTE_CONTROL_DISABLED, IS_DESKTOP_STREAMING_DISABLED, IS_PREFERRED_PROTOCOL, IS_PRESENCE_ENABLED, IS_PROTOCOL_HIDDEN, IS_SERVER_OVERRIDDEN, IS_USE_ICE, IS_USE_UPNP, IS_VIDEO_CALLING_DISABLED_FOR_ACCOUNT, JINGLE_NODES_SEARCH_BUDDIES, KEEP_ALIVE_INTERVAL, KEEP_ALIVE_METHOD, MODE_PARANOIA, MUST_REGISTER_TO_CALL, NO_PASSWORD_REQUIRED, OVERRIDE_ENCODINGS, PASSWORD, POLLING_PERIOD, PREFERRED_CLEAR_PORT_PROPERTY_NAME, PREFERRED_SECURE_PORT_PROPERTY_NAME, PREFERRED_TRANSPORT, PROTOCOL, PROTOCOL_ICON_PATH, PROXY_ADDRESS, PROXY_ADDRESS_VALIDATED, PROXY_AUTO_CONFIG, PROXY_PASSWORD, PROXY_PORT, PROXY_TRANSPORT, PROXY_TYPE, PROXY_USERNAME, registeredAccounts, RESOURCE, RESOURCE_PRIORITY, SAVP_MANDATORY, SAVP_OFF, SAVP_OPTION, SAVP_OPTIONAL, SDES_CIPHER_SUITES, SERVER_ADDRESS, SERVER_ADDRESS_VALIDATED, SERVER_PORT, SERVER_TRANSPORT, SMS_SERVER_ADDRESS, STRATEGY, STUN_ADDRESS, STUN_IS_TURN_SUPPORTED, STUN_PASSWORD, STUN_PORT, STUN_PREFIX, STUN_USERNAME, SUBSCRIPTION_EXPIRATION, USE_DEFAULT_STUN_SERVER, USE_JITSI_VIDEO_BRIDGE, USE_TRANSLATOR_IN_CONFERENCE, USER_ID, VOICEMAIL_CHECK_URI, VOICEMAIL_ENABLED, VOICEMAIL_URI
Modifier | Constructor and Description |
---|---|
protected |
ProtocolProviderFactoryJabberImpl()
Creates an instance of the ProtocolProviderFactoryJabberImpl.
|
Modifier and Type | Method and Description |
---|---|
protected AccountID |
createAccountID(java.lang.String userID,
java.util.Map<java.lang.String,java.lang.String> accountProperties)
Create an account.
|
protected ProtocolProviderService |
createService(java.lang.String userID,
AccountID accountID)
Initializes a new
ProtocolProviderService instance with a
specific user ID to represent a specific AccountID . |
AccountID |
installAccount(java.lang.String userIDStr,
java.util.Map<java.lang.String,java.lang.String> accountProperties)
Initializes and creates an account corresponding to the specified
accountProperties and registers the resulting ProtocolProvider in the
context BundleContext parameter.
|
void |
modifyAccount(ProtocolProviderService protocolProvider,
java.util.Map<java.lang.String,java.lang.String> accountProperties)
Modify an existing account.
|
protected void |
storeAccount(AccountID accountID)
Ovverides the original in order give access to protocol implementation.
|
createAccount, findAccountPrefix, getBundleContext, getProtocolName, getProtocolProviderFactory, getProviderForAccount, getRegisteredAccounts, loadAccount, loadAccount, loadPassword, loadPassword, removeStoredAccount, stop, stop, storeAccount, storePassword, storePassword, uninstallAccount, unloadAccount
public static final java.lang.String IS_USE_JINGLE_NODES
static org.jivesoftware.smack.provider.ProviderManager providerManager
protected ProtocolProviderFactoryJabberImpl()
protected void storeAccount(AccountID accountID)
storeAccount
in class ProtocolProviderFactory
accountID
- the account identifier.public AccountID installAccount(java.lang.String userIDStr, java.util.Map<java.lang.String,java.lang.String> accountProperties)
installAccount
in class ProtocolProviderFactory
userIDStr
- the user identifier for the new accountaccountProperties
- a set of protocol (or implementation)
specific properties defining the new account.protected AccountID createAccountID(java.lang.String userID, java.util.Map<java.lang.String,java.lang.String> accountProperties)
createAccountID
in class ProtocolProviderFactory
userID
- the user IDaccountProperties
- the properties associated with the user IDprotected ProtocolProviderService createService(java.lang.String userID, AccountID accountID)
ProtocolProviderFactory
ProtocolProviderService
instance with a
specific user ID to represent a specific AccountID
.
The method is a pure factory allowing implementers to specify the runtime
type of the created ProtocolProviderService
and customize
the instance. The caller will later register the returned service with
the BundleContext
of this factory.
createService
in class ProtocolProviderFactory
userID
- the user ID to initialize the new instance withaccountID
- the AccountID
to be represented by the new
instanceProtocolProviderService
instance with the
specific user ID representing the specified
AccountID
public void modifyAccount(ProtocolProviderService protocolProvider, java.util.Map<java.lang.String,java.lang.String> accountProperties) throws java.lang.NullPointerException
modifyAccount
in class ProtocolProviderFactory
protocolProvider
- the ProtocolProviderService responsible
of the accountaccountProperties
- modified properties to be setjava.lang.NullPointerException
- if any of the arguments is null.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.