Added multichat operation set definition and Gibberish protocol implementation. Related issues: Issue #241 , Issue #244, Issue #250

cosmetics
cusax-fix
Emil Ivov 19 years ago
parent fa60efcda9
commit 664682e701

@ -23,7 +23,7 @@ public class ProtocolProviderFactoryJabberImpl
{
private Logger logger = Logger.getLogger(
ProtocolProviderFactoryJabberImpl.class);
/**
* The table that we store our accounts in.
*/
@ -142,7 +142,8 @@ public AccountID loadAccount( Map accountProperties)
BundleContext context
= JabberActivator.getBundleContext();
if(context == null)
throw new NullPointerException("The specified BundleContext was null");
throw new NullPointerException(
"The specified BundleContext was null");
String userIDStr = (String)accountProperties.get(USER_ID);
@ -186,7 +187,7 @@ public boolean uninstallAccount(AccountID accountID)
{
//unregister the protocol provider
ServiceReference serRef = getProviderForAccount(accountID);
ProtocolProviderService protocolProvider
= (ProtocolProviderService) JabberActivator.getBundleContext()
.getService(serRef);
@ -194,11 +195,11 @@ public boolean uninstallAccount(AccountID accountID)
try {
protocolProvider.unregister();
}
catch (OperationFailedException e) {
catch (OperationFailedException exc) {
logger.error("Failed to unregister protocol provider for account : "
+ accountID + " caused by : " + e);
+ accountID + " caused by : " + exc);
}
ServiceRegistration registration
= (ServiceRegistration)registeredAccounts.remove(accountID);

@ -36,7 +36,7 @@ public class ProtocolProviderServiceJabberImpl
private XMPPConnection connection = null;
/**
* indicates whether or not the provider is initialized and ready for use.
* Indicates whether or not the provider is initialized and ready for use.
*/
private boolean isInitialized = false;

@ -123,7 +123,6 @@ public abstract class ProtocolProviderFactory
*/
public static final String PREFERRED_TRANSPORT = "PREFERRED_TRANSPORT";
/**
* Initializaed and creates an account corresponding to the specified
* accountProperties and registers the resulting ProtocolProvider in the

Loading…
Cancel
Save