public class ProtocolProviderFactoryIrcImpl extends ProtocolProviderFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHAT_ROOM_PRESENCE_TASK
Property indicating whether or not to enable a periodic task for querying
channel member presence (available, away).
|
static java.lang.String |
CONTACT_PRESENCE_TASK
Property indicating whether or not to enable a periodic task for querying
contact presence (offline, online).
|
static java.lang.String |
RESOLVE_DNS_THROUGH_PROXY
Property for indicating that DNS names should be resolved through the
SOCKS proxy if a proxy server is configured.
|
static java.lang.String |
SASL_ENABLED
Property indicating SASL is enabled.
|
static java.lang.String |
SASL_ROLE
Property for SASL authorization role.
|
static java.lang.String |
SASL_USERNAME
Property for SASL user name.
|
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
Constructor and Description |
---|
ProtocolProviderFactoryIrcImpl()
Constructor.
|
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 IRC Account ID.
|
protected ProtocolProviderService |
createService(java.lang.String userID,
AccountID accountID)
Create an IRC provider service.
|
AccountID |
installAccount(java.lang.String userIDStr,
java.util.Map<java.lang.String,java.lang.String> accountProperties)
Initialized 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 IRC account.
|
createAccount, findAccountPrefix, getBundleContext, getProtocolName, getProtocolProviderFactory, getProviderForAccount, getRegisteredAccounts, loadAccount, loadAccount, loadPassword, loadPassword, removeStoredAccount, stop, stop, storeAccount, storeAccount, storePassword, storePassword, uninstallAccount, unloadAccount
public static final java.lang.String CHAT_ROOM_PRESENCE_TASK
public static final java.lang.String CONTACT_PRESENCE_TASK
public static final java.lang.String SASL_ENABLED
public static final java.lang.String SASL_USERNAME
public static final java.lang.String SASL_ROLE
public static final java.lang.String RESOLVE_DNS_THROUGH_PROXY
public ProtocolProviderFactoryIrcImpl()
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 uniquely representing the newly
created account within the protocol namespace.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)
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)
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)
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.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.