Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2009-02-13 13:39:26 -0500
committerslewis2009-02-13 13:39:26 -0500
commitd3bcd8538360c619a0a28a4e998c50de4ebc2adc (patch)
tree261131a9276d9646d56d5f971ce949c2af14cd17 /providers/bundles/org.eclipse.ecf.provider.xmpp
parent1c09832716a04016fb241b1b8d4062b6c160239a (diff)
downloadorg.eclipse.ecf-d3bcd8538360c619a0a28a4e998c50de4ebc2adc.tar.gz
org.eclipse.ecf-d3bcd8538360c619a0a28a4e998c50de4ebc2adc.tar.xz
org.eclipse.ecf-d3bcd8538360c619a0a28a4e998c50de4ebc2adc.zip
Changed settings to remove spurious warnings
Diffstat (limited to 'providers/bundles/org.eclipse.ecf.provider.xmpp')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.xmpp/.settings/org.eclipse.pde.api.tools.prefs91
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java183
2 files changed, 190 insertions, 84 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.xmpp/.settings/org.eclipse.pde.api.tools.prefs b/providers/bundles/org.eclipse.ecf.provider.xmpp/.settings/org.eclipse.pde.api.tools.prefs
new file mode 100644
index 000000000..02fde9a4a
--- /dev/null
+++ b/providers/bundles/org.eclipse.ecf.provider.xmpp/.settings/org.eclipse.pde.api.tools.prefs
@@ -0,0 +1,91 @@
+#Fri Feb 13 10:39:07 PST 2009
+ANNOTATION_ELEMENT_TYPE_ADDED_METHOD_WITHOUT_DEFAULT_VALUE=Error
+ANNOTATION_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
+ANNOTATION_ELEMENT_TYPE_REMOVED_FIELD=Error
+ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD=Error
+ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
+API_COMPONENT_ELEMENT_TYPE_REMOVED_API_TYPE=Error
+API_COMPONENT_ELEMENT_TYPE_REMOVED_TYPE=Error
+CLASS_ELEMENT_TYPE_ADDED_METHOD=Error
+CLASS_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error
+CLASS_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
+CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
+CLASS_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
+CLASS_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error
+CLASS_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
+CLASS_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
+CLASS_ELEMENT_TYPE_REMOVED_CONSTRUCTOR=Error
+CLASS_ELEMENT_TYPE_REMOVED_FIELD=Error
+CLASS_ELEMENT_TYPE_REMOVED_METHOD=Error
+CLASS_ELEMENT_TYPE_REMOVED_SUPERCLASS=Error
+CLASS_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
+CLASS_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
+CONSTRUCTOR_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
+CONSTRUCTOR_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
+CONSTRUCTOR_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error
+CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
+ENUM_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
+ENUM_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
+ENUM_ELEMENT_TYPE_REMOVED_ENUM_CONSTANT=Error
+ENUM_ELEMENT_TYPE_REMOVED_FIELD=Error
+ENUM_ELEMENT_TYPE_REMOVED_METHOD=Error
+ENUM_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
+FIELD_ELEMENT_TYPE_ADDED_VALUE=Error
+FIELD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
+FIELD_ELEMENT_TYPE_CHANGED_FINAL_TO_NON_FINAL_STATIC_CONSTANT=Error
+FIELD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
+FIELD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error
+FIELD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error
+FIELD_ELEMENT_TYPE_CHANGED_TYPE=Error
+FIELD_ELEMENT_TYPE_CHANGED_VALUE=Error
+FIELD_ELEMENT_TYPE_REMOVED_TYPE_ARGUMENT=Error
+FIELD_ELEMENT_TYPE_REMOVED_VALUE=Error
+ILLEGAL_EXTEND=Warning
+ILLEGAL_IMPLEMENT=Warning
+ILLEGAL_INSTANTIATE=Warning
+ILLEGAL_OVERRIDE=Warning
+ILLEGAL_REFERENCE=Warning
+INTERFACE_ELEMENT_TYPE_ADDED_FIELD=Error
+INTERFACE_ELEMENT_TYPE_ADDED_METHOD=Error
+INTERFACE_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error
+INTERFACE_ELEMENT_TYPE_ADDED_SUPER_INTERFACE_WITH_METHODS=Error
+INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
+INTERFACE_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
+INTERFACE_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
+INTERFACE_ELEMENT_TYPE_REMOVED_FIELD=Error
+INTERFACE_ELEMENT_TYPE_REMOVED_METHOD=Error
+INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
+INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
+INVALID_JAVADOC_TAG=Ignore
+INVALID_REFERENCE_IN_SYSTEM_LIBRARIES=Ignore
+LEAK_EXTEND=Warning
+LEAK_FIELD_DECL=Warning
+LEAK_IMPLEMENT=Warning
+LEAK_METHOD_PARAM=Warning
+LEAK_METHOD_RETURN_TYPE=Ignore
+METHOD_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error
+METHOD_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
+METHOD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
+METHOD_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error
+METHOD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
+METHOD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error
+METHOD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error
+METHOD_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error
+METHOD_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error
+METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
+TYPE_PARAMETER_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
+TYPE_PARAMETER_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
+TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
+TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
+TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
+TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
+UNUSED_PROBLEM_FILTERS=Warning
+eclipse.preferences.version=1
+incompatible_api_component_version=Error
+incompatible_api_component_version_include_major_without_breaking_change=Disabled
+incompatible_api_component_version_include_minor_without_api_change=Disabled
+invalid_since_tag_version=Error
+malformed_since_tag=Error
+missing_since_tag=Error
+report_api_breakage_when_major_version_incremented=Disabled
+report_resolution_errors_api_component=Warning
diff --git a/providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java b/providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java
index 32cc8e36d..488990226 100644
--- a/providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java
+++ b/providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java
@@ -10,41 +10,23 @@ package org.eclipse.ecf.provider.xmpp;
import java.io.IOException;
import java.net.ConnectException;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-
+import java.util.*;
import org.eclipse.ecf.core.ContainerConnectException;
import org.eclipse.ecf.core.events.ContainerDisconnectedEvent;
import org.eclipse.ecf.core.events.ContainerDisconnectingEvent;
-import org.eclipse.ecf.core.identity.ID;
-import org.eclipse.ecf.core.identity.IDFactory;
-import org.eclipse.ecf.core.identity.Namespace;
-import org.eclipse.ecf.core.security.Callback;
-import org.eclipse.ecf.core.security.CallbackHandler;
-import org.eclipse.ecf.core.security.IConnectContext;
-import org.eclipse.ecf.core.security.ObjectCallback;
-import org.eclipse.ecf.core.security.UnsupportedCallbackException;
+import org.eclipse.ecf.core.identity.*;
+import org.eclipse.ecf.core.security.*;
import org.eclipse.ecf.core.sharedobject.SharedObjectAddException;
import org.eclipse.ecf.core.sharedobject.util.IQueueEnqueue;
import org.eclipse.ecf.core.user.User;
import org.eclipse.ecf.core.util.Event;
import org.eclipse.ecf.filetransfer.ISendFileTransferContainerAdapter;
+import org.eclipse.ecf.internal.provider.xmpp.*;
import org.eclipse.ecf.internal.provider.xmpp.Messages;
-import org.eclipse.ecf.internal.provider.xmpp.XMPPChatRoomContainer;
-import org.eclipse.ecf.internal.provider.xmpp.XMPPChatRoomManager;
-import org.eclipse.ecf.internal.provider.xmpp.XMPPContainerAccountManager;
-import org.eclipse.ecf.internal.provider.xmpp.XMPPContainerContext;
-import org.eclipse.ecf.internal.provider.xmpp.XMPPContainerPresenceHelper;
-import org.eclipse.ecf.internal.provider.xmpp.XmppPlugin;
-import org.eclipse.ecf.internal.provider.xmpp.events.IQEvent;
-import org.eclipse.ecf.internal.provider.xmpp.events.MessageEvent;
-import org.eclipse.ecf.internal.provider.xmpp.events.PresenceEvent;
+import org.eclipse.ecf.internal.provider.xmpp.events.*;
import org.eclipse.ecf.internal.provider.xmpp.filetransfer.XMPPOutgoingFileTransferHelper;
import org.eclipse.ecf.internal.provider.xmpp.search.XMPPUserSearchManager;
-import org.eclipse.ecf.internal.provider.xmpp.smack.ECFConnection;
-import org.eclipse.ecf.internal.provider.xmpp.smack.ECFConnectionObjectPacketEvent;
-import org.eclipse.ecf.internal.provider.xmpp.smack.ECFConnectionPacketEvent;
+import org.eclipse.ecf.internal.provider.xmpp.smack.*;
import org.eclipse.ecf.presence.IAccountManager;
import org.eclipse.ecf.presence.IPresenceContainerAdapter;
import org.eclipse.ecf.presence.chatroom.IChatRoomContainer;
@@ -53,40 +35,35 @@ import org.eclipse.ecf.presence.im.IChatManager;
import org.eclipse.ecf.presence.roster.IRosterManager;
import org.eclipse.ecf.presence.search.IUserSearchManager;
import org.eclipse.ecf.presence.service.IPresenceService;
-import org.eclipse.ecf.provider.comm.AsynchEvent;
-import org.eclipse.ecf.provider.comm.ConnectionCreateException;
-import org.eclipse.ecf.provider.comm.ISynchAsynchConnection;
-import org.eclipse.ecf.provider.generic.ClientSOContainer;
-import org.eclipse.ecf.provider.generic.ContainerMessage;
-import org.eclipse.ecf.provider.generic.SOConfig;
-import org.eclipse.ecf.provider.generic.SOContainerConfig;
-import org.eclipse.ecf.provider.generic.SOContext;
-import org.eclipse.ecf.provider.generic.SOWrapper;
+import org.eclipse.ecf.provider.comm.*;
+import org.eclipse.ecf.provider.generic.*;
import org.eclipse.ecf.provider.xmpp.identity.XMPPID;
import org.eclipse.osgi.util.NLS;
import org.jivesoftware.smack.Roster;
import org.jivesoftware.smack.XMPPConnection;
-import org.jivesoftware.smack.packet.IQ;
-import org.jivesoftware.smack.packet.Message;
-import org.jivesoftware.smack.packet.Packet;
-import org.jivesoftware.smack.packet.Presence;
+import org.jivesoftware.smack.packet.*;
import org.jivesoftware.smackx.packet.MUCUser;
import org.jivesoftware.smackx.packet.XHTMLExtension;
/**
* @since 3.0
*/
-public class XMPPContainer extends ClientSOContainer implements IPresenceService {
+public class XMPPContainer extends ClientSOContainer implements
+ IPresenceService {
public static final int DEFAULT_KEEPALIVE = 30000;
- public static final String CONNECT_NAMESPACE = XmppPlugin.getDefault().getNamespaceIdentifier();
+ public static final String CONNECT_NAMESPACE = XmppPlugin.getDefault()
+ .getNamespaceIdentifier();
- public static final String CONTAINER_HELPER_ID = XMPPContainer.class.getName() + ".xmpphandler"; //$NON-NLS-1$
+ public static final String CONTAINER_HELPER_ID = XMPPContainer.class
+ .getName()
+ + ".xmpphandler"; //$NON-NLS-1$
protected static final String GOOGLE_SERVICENAME = "gmail.com"; //$NON-NLS-1$
- private static final String[] googleHosts = {GOOGLE_SERVICENAME, "talk.google.com", "googlemail.com"}; //$NON-NLS-1$ //$NON-NLS-2$
+ private static final String[] googleHosts = { GOOGLE_SERVICENAME,
+ "talk.google.com", "googlemail.com" }; //$NON-NLS-1$ //$NON-NLS-2$
public static final String XMPP_GOOGLE_OVERRIDE_PROP_NAME = "ecf.xmpp.google.override"; //$NON-NLS-1$
@@ -95,37 +72,41 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
static {
for (int i = 0; i < googleHosts.length; i++)
googleNames.add(googleHosts[i]);
- final String override = System.getProperty(XMPP_GOOGLE_OVERRIDE_PROP_NAME);
+ final String override = System
+ .getProperty(XMPP_GOOGLE_OVERRIDE_PROP_NAME);
if (override != null)
googleNames.add(override.toLowerCase());
}
protected int keepAlive = 0;
- protected XMPPContainerAccountManager accountManager = null;
+ XMPPContainerAccountManager accountManager = null;
+
+ XMPPChatRoomManager chatRoomManager = null;
- protected XMPPChatRoomManager chatRoomManager = null;
+ XMPPOutgoingFileTransferHelper outgoingFileTransferContainerAdapter = null;
- protected XMPPOutgoingFileTransferHelper outgoingFileTransferContainerAdapter = null;
+ XMPPContainerPresenceHelper presenceHelper = null;
- protected XMPPContainerPresenceHelper presenceHelper = null;
-
/**
* @since 3.0
*/
- protected XMPPUserSearchManager searchManager = null;
+ XMPPUserSearchManager searchManager = null;
protected ID presenceHelperID = null;
- protected XMPPContainer(SOContainerConfig config, int keepAlive) throws Exception {
+ protected XMPPContainer(SOContainerConfig config, int keepAlive)
+ throws Exception {
super(config);
this.keepAlive = keepAlive;
accountManager = new XMPPContainerAccountManager();
chatRoomManager = new XMPPChatRoomManager(getID());
searchManager = new XMPPUserSearchManager();
- this.presenceHelperID = IDFactory.getDefault().createStringID(CONTAINER_HELPER_ID);
+ this.presenceHelperID = IDFactory.getDefault().createStringID(
+ CONTAINER_HELPER_ID);
presenceHelper = new XMPPContainerPresenceHelper(this);
- outgoingFileTransferContainerAdapter = new XMPPOutgoingFileTransferHelper(this);
+ outgoingFileTransferContainerAdapter = new XMPPOutgoingFileTransferHelper(
+ this);
}
public XMPPContainer() throws Exception {
@@ -137,13 +118,14 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
}
public XMPPContainer(String userhost, int ka) throws Exception {
- this(new SOContainerConfig(IDFactory.getDefault().createStringID(userhost)), ka);
+ this(new SOContainerConfig(IDFactory.getDefault().createStringID(
+ userhost)), ka);
}
public IRosterManager getRosterManager() {
return presenceHelper.getRosterManager();
}
-
+
/**
* @since 3.0
*/
@@ -169,18 +151,22 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
* @see org.eclipse.ecf.provider.generic.SOContainer#getConnectNamespace()
*/
public Namespace getConnectNamespace() {
- return IDFactory.getDefault().getNamespaceByName(XmppPlugin.getDefault().getNamespaceIdentifier());
+ return IDFactory.getDefault().getNamespaceByName(
+ XmppPlugin.getDefault().getNamespaceIdentifier());
}
/*
* (non-Javadoc)
*
- * @see org.eclipse.ecf.provider.generic.ClientSOContainer#connect(org.eclipse.ecf.core.identity.ID,
- * org.eclipse.ecf.core.security.IConnectContext)
+ * @see
+ * org.eclipse.ecf.provider.generic.ClientSOContainer#connect(org.eclipse
+ * .ecf.core.identity.ID, org.eclipse.ecf.core.security.IConnectContext)
*/
- public void connect(ID remote, IConnectContext joinContext) throws ContainerConnectException {
+ public void connect(ID remote, IConnectContext joinContext)
+ throws ContainerConnectException {
try {
- getSharedObjectManager().addSharedObject(presenceHelperID, presenceHelper, null);
+ getSharedObjectManager().addSharedObject(presenceHelperID,
+ presenceHelper, null);
super.connect(remote, joinContext);
XmppPlugin.getDefault().registerService(this);
} catch (final ContainerConnectException e) {
@@ -188,7 +174,9 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
throw e;
} catch (final SharedObjectAddException e1) {
disconnect();
- throw new ContainerConnectException(NLS.bind(Messages.XMPPContainer_EXCEPTION_ADDING_SHARED_OBJECT, presenceHelperID), e1);
+ throw new ContainerConnectException(NLS.bind(
+ Messages.XMPPContainer_EXCEPTION_ADDING_SHARED_OBJECT,
+ presenceHelperID), e1);
}
}
@@ -199,7 +187,8 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
*/
public void disconnect() {
final ID groupID = getConnectedID();
- fireContainerEvent(new ContainerDisconnectingEvent(this.getID(), groupID));
+ fireContainerEvent(new ContainerDisconnectingEvent(this.getID(),
+ groupID));
synchronized (getConnectLock()) {
// If we are currently connected
if (isConnected()) {
@@ -238,7 +227,8 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
/*
* (non-Javadoc)
*
- * @see org.eclipse.ecf.provider.generic.SOContainer#getAdapter(java.lang.Class)
+ * @see
+ * org.eclipse.ecf.provider.generic.SOContainer#getAdapter(java.lang.Class)
*/
public Object getAdapter(Class clazz) {
if (clazz.equals(IPresenceContainerAdapter.class))
@@ -249,30 +239,37 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
return super.getAdapter(clazz);
}
- protected ID handleConnectResponse(ID originalTarget, Object serverData) throws Exception {
+ protected ID handleConnectResponse(ID originalTarget, Object serverData)
+ throws Exception {
if (originalTarget != null && !originalTarget.equals(getID())) {
addNewRemoteMember(originalTarget, null);
final ECFConnection conn = getECFConnection();
accountManager.setConnection(conn.getXMPPConnection());
- chatRoomManager.setConnection(getConnectNamespace(), originalTarget, conn);
- searchManager.setConnection(getConnectNamespace(), originalTarget,conn);
+ chatRoomManager.setConnection(getConnectNamespace(),
+ originalTarget, conn);
+ searchManager.setConnection(getConnectNamespace(), originalTarget,
+ conn);
searchManager.setEnabled(!isGoogle(originalTarget));
presenceHelper.setUser(new User(originalTarget));
- outgoingFileTransferContainerAdapter.setConnection(conn.getXMPPConnection());
+ outgoingFileTransferContainerAdapter.setConnection(conn
+ .getXMPPConnection());
return originalTarget;
} else
- throw new ConnectException(Messages.XMPPContainer_EXCEPTION_INVALID_RESPONSE_FROM_SERVER);
+ throw new ConnectException(
+ Messages.XMPPContainer_EXCEPTION_INVALID_RESPONSE_FROM_SERVER);
}
/*
* (non-Javadoc)
*
- * @see org.eclipse.ecf.provider.generic.ClientSOContainer#createConnection(org.eclipse.ecf.core.identity.ID,
- * java.lang.Object)
+ * @see
+ * org.eclipse.ecf.provider.generic.ClientSOContainer#createConnection(org
+ * .eclipse.ecf.core.identity.ID, java.lang.Object)
*/
- protected ISynchAsynchConnection createConnection(ID remoteSpace, Object data) throws ConnectionCreateException {
+ protected ISynchAsynchConnection createConnection(ID remoteSpace,
+ Object data) throws ConnectionCreateException {
final boolean google = isGoogle(remoteSpace);
return new ECFConnection(google, getConnectNamespace(), receiver);
}
@@ -291,10 +288,13 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
/*
* (non-Javadoc)
*
- * @see org.eclipse.ecf.provider.generic.ClientSOContainer#getConnectData(org.eclipse.ecf.core.identity.ID,
- * org.eclipse.ecf.core.security.IConnectContext)
+ * @see
+ * org.eclipse.ecf.provider.generic.ClientSOContainer#getConnectData(org
+ * .eclipse.ecf.core.identity.ID,
+ * org.eclipse.ecf.core.security.IConnectContext)
*/
- protected Object getConnectData(ID remote, IConnectContext joinContext) throws IOException, UnsupportedCallbackException {
+ protected Object getConnectData(ID remote, IConnectContext joinContext)
+ throws IOException, UnsupportedCallbackException {
final Callback[] callbacks = createAuthorizationCallbacks();
if (joinContext != null && callbacks != null && callbacks.length > 0) {
final CallbackHandler handler = joinContext.getCallbackHandler();
@@ -329,7 +329,8 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
/*
* (non-Javadoc)
*
- * @see org.eclipse.ecf.provider.generic.ClientSOContainer#getConnectTimeout()
+ * @see
+ * org.eclipse.ecf.provider.generic.ClientSOContainer#getConnectTimeout()
*/
protected int getConnectTimeout() {
return keepAlive;
@@ -358,7 +359,8 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
} else if (aPacket instanceof Presence) {
deliverEvent(new PresenceEvent((Presence) aPacket));
} else {
- log(NLS.bind(Messages.XMPPContainer_UNEXPECTED_XMPP_MESSAGE, aPacket.toXML()), null);
+ log(NLS.bind(Messages.XMPPContainer_UNEXPECTED_XMPP_MESSAGE,
+ aPacket.toXML()), null);
}
}
}
@@ -369,7 +371,8 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
final Object extension = i.next();
if (extension instanceof XHTMLExtension) {
final XHTMLExtension xhtmlExtension = (XHTMLExtension) extension;
- deliverEvent(new MessageEvent((Message) packet, xhtmlExtension.getBodies()));
+ deliverEvent(new MessageEvent((Message) packet, xhtmlExtension
+ .getBodies()));
return true;
}
if (packet instanceof Presence && extension instanceof MUCUser) {
@@ -382,17 +385,23 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
/*
* (non-Javadoc)
*
- * @see org.eclipse.ecf.provider.generic.SOContainer#createSharedObjectContext(org.eclipse.ecf.provider.generic.SOConfig,
- * org.eclipse.ecf.core.sharedobject.util.IQueueEnqueue)
+ * @see
+ * org.eclipse.ecf.provider.generic.SOContainer#createSharedObjectContext
+ * (org.eclipse.ecf.provider.generic.SOConfig,
+ * org.eclipse.ecf.core.sharedobject.util.IQueueEnqueue)
*/
- protected SOContext createSharedObjectContext(SOConfig soconfig, IQueueEnqueue queue) {
- return new XMPPContainerContext(soconfig.getSharedObjectID(), soconfig.getHomeContainerID(), this, soconfig.getProperties(), queue);
+ protected SOContext createSharedObjectContext(SOConfig soconfig,
+ IQueueEnqueue queue) {
+ return new XMPPContainerContext(soconfig.getSharedObjectID(), soconfig
+ .getHomeContainerID(), this, soconfig.getProperties(), queue);
}
/*
* (non-Javadoc)
*
- * @see org.eclipse.ecf.provider.generic.ClientSOContainer#processAsynch(org.eclipse.ecf.provider.comm.AsynchEvent)
+ * @see
+ * org.eclipse.ecf.provider.generic.ClientSOContainer#processAsynch(org.
+ * eclipse.ecf.provider.comm.AsynchEvent)
*/
protected void processAsynch(AsynchEvent e) {
try {
@@ -407,9 +416,11 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
// this should be a ContainerMessage
final Object cm = deserializeContainerMessage((byte[]) obj);
if (cm == null)
- throw new IOException(Messages.XMPPContainer_EXCEPTION_DESERIALIZED_OBJECT_NULL);
+ throw new IOException(
+ Messages.XMPPContainer_EXCEPTION_DESERIALIZED_OBJECT_NULL);
final ContainerMessage contMessage = (ContainerMessage) cm;
- final IChatRoomContainer chat = chatRoomManager.findReceiverChatRoom(contMessage.getToContainerID());
+ final IChatRoomContainer chat = chatRoomManager
+ .findReceiverChatRoom(contMessage.getToContainerID());
if (chat != null && chat instanceof XMPPChatRoomContainer) {
final XMPPChatRoomContainer cont = (XMPPChatRoomContainer) chat;
cont.handleContainerMessage(contMessage);
@@ -425,14 +436,18 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
} else if (data instanceof ContainerMessage.SharedObjectDisposeMessage) {
handleSharedObjectDisposeMessage(contMessage);
} else {
- debug(NLS.bind(Messages.XMPPContainer_UNRECOGONIZED_CONTAINER_MESSAGE, contMessage));
+ debug(NLS
+ .bind(
+ Messages.XMPPContainer_UNRECOGONIZED_CONTAINER_MESSAGE,
+ contMessage));
}
} else {
// Unexpected type...
log(NLS.bind(Messages.XMPPContainer_UNEXPECTED_EVENT, e), null);
}
} catch (final Exception except) {
- log(NLS.bind(Messages.XMPPContainer_EXCEPTION_HANDLING_ASYCH_EVENT, e), except);
+ log(NLS.bind(Messages.XMPPContainer_EXCEPTION_HANDLING_ASYCH_EVENT,
+ e), except);
}
}

Back to the top