public class ProtocolProviderFactoryIcqImpl extends ProtocolProviderFactory
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_JINGLE_NODES, 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 |
ProtocolProviderFactoryIcqImpl(boolean isAimFactory)
Creates an instance of the ProtocolProviderFactoryIcqImpl.
|
Modifier and Type | Method and Description |
---|---|
AccountID |
createAccount(java.util.Map<java.lang.String,java.lang.String> accountProperties)
Initializes and creates an account corresponding to the specified
accountProperties.
|
protected AccountID |
createAccountID(java.lang.String userID,
java.util.Map<java.lang.String,java.lang.String> accountProperties)
Creates a new
AccountID instance with a specific user ID to
represent a given set of account properties. |
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.
|
boolean |
loadAccount(AccountID accountID)
Creates a protocol provider for the given accountID and
registers it in the bundle context.
|
AccountID |
loadAccount(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)
Modifies the account corresponding to the specified accountID.
|
findAccountPrefix, getBundleContext, getProtocolName, getProtocolProviderFactory, getProviderForAccount, getRegisteredAccounts, loadPassword, loadPassword, removeStoredAccount, stop, stop, storeAccount, storeAccount, storePassword, storePassword, uninstallAccount, unloadAccount
protected ProtocolProviderFactoryIcqImpl(boolean isAimFactory)
isAimFactory
- whether its an aim factorypublic 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.public AccountID loadAccount(java.util.Map<java.lang.String,java.lang.String> accountProperties)
loadAccount
in class ProtocolProviderFactory
accountProperties
- a set of protocol (or implementation) specific
properties defining the new account.public boolean loadAccount(AccountID accountID)
loadAccount
in class ProtocolProviderFactory
accountID
- the account identifierpublic AccountID createAccount(java.util.Map<java.lang.String,java.lang.String> accountProperties)
createAccount
in class ProtocolProviderFactory
accountProperties
- 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)
ProtocolProviderFactory
AccountID
instance with a specific user ID to
represent a given set of account properties.
The method is a pure factory allowing implementers to specify the runtime
type of the created AccountID
and customize the instance.
The returned AccountID
will later be associated with a
ProtocolProviderService
by the caller (e.g. using
ProtocolProviderFactory.createService(String, AccountID)
).
createAccountID
in class ProtocolProviderFactory
userID
- the user ID of the new instanceaccountProperties
- the set of properties to be represented by the
new instanceAccountID
instance with the specified user ID
representing the given set of account propertiesprotected 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
ProtocolProviderFactory
modifyAccount
in class ProtocolProviderFactory
protocolProvider
- the protocol provider service corresponding to
the modified account.accountProperties
- a set of protocol (or implementation) specific
properties defining the new account.java.lang.NullPointerException
- if any of the arguments is null.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.