|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ecf.provider.generic.SOContainer org.eclipse.ecf.provider.generic.ClientSOContainer org.eclipse.ecf.provider.xmpp.container.XMPPGroupChatSOContainer
public class XMPPGroupChatSOContainer
Field Summary | |
---|---|
static java.lang.String |
XMPP_GROUPCHAT_DELEGATE_ID
|
Fields inherited from class org.eclipse.ecf.provider.generic.ClientSOContainer |
---|
CONNECTED, CONNECTING, connection, connectionState, connectLock, DISCONNECTED, remoteServerID |
Fields inherited from class org.eclipse.ecf.provider.generic.SOContainer |
---|
DEFAULT_OBJECT_ARG_KEY, DEFAULT_OBJECT_ARGTYPES_KEY, groupManager, isClosing, loadingThreadGroup, policy, receiver, sharedObjectManager, sharedObjectThreadGroup |
Constructor Summary | |
---|---|
XMPPGroupChatSOContainer(ISharedObjectContainerConfig config,
ISynchAsynchConnection conn,
org.jivesoftware.smack.XMPPConnection xmppconn,
Namespace usernamespace)
|
|
XMPPGroupChatSOContainer(ISynchAsynchConnection conn,
org.jivesoftware.smack.XMPPConnection xmppconn,
Namespace usernamespace)
|
Method Summary | |
---|---|
void |
addChatParticipantListener(IChatParticipantListener participantListener)
Add participant listener. |
void |
addMessageListener(IMessageListener listener)
Setup listener for handling IM messages |
protected void |
addSharedObjectToContainer(ID remote)
|
protected void |
cleanUpConnectFail()
|
void |
connect(ID remote,
IConnectContext connectContext)
Connect to a target remote process or process group. |
void |
connect(java.lang.String groupName)
|
protected ID |
createChatRoomID(java.lang.String groupName)
|
protected ISynchAsynchConnection |
createConnection(ID remoteSpace,
java.lang.Object data)
|
protected SOContext |
createSharedObjectContext(SOConfig soconfig,
IQueueEnqueue queue)
|
void |
disconnect()
Disconnect. |
void |
dispose()
Dispose this IContainer instance. |
IChatMessageSender |
getChatMessageSender()
Get interface for sending messages |
Namespace |
getConnectNamespace()
Get the Namespace expected by the remote target container. |
protected void |
handleChatMembershipEvent(java.lang.String from,
boolean add)
|
protected void |
handleChatMessage(org.jivesoftware.smack.packet.Message mess)
|
protected void |
handleContainerMessage(ContainerMessage mess)
|
protected void |
handleIQMessage(org.jivesoftware.smack.packet.IQ mess)
|
protected void |
handlePresenceMessage(org.jivesoftware.smack.packet.Presence mess)
|
protected void |
handleXMPPMessage(org.jivesoftware.smack.packet.Packet aPacket)
|
protected void |
initializeSharedObject()
|
void |
removeChatParticipantListener(IChatParticipantListener participantListener)
Remove chat participant listener |
void |
removeMessageListener(IMessageListener msgListener)
|
protected void |
sendMessage(ContainerMessage data)
|
protected boolean |
verifyToIDForSharedObjectMessage(ID toID)
|
Methods inherited from class org.eclipse.ecf.provider.generic.ClientSOContainer |
---|
createAuthorizationCallbacks, createConnectData, forwardExcluding, forwardExcluding, forwardToRemote, getConnectedID, getConnection, getConnectLock, getConnectTimeout, getIDForConnection, getLeaveData, handleConnectResponse, handleLeaveGroupMessage, handleViewChangeMessage, isConnected, isConnecting, isGroupManager, memberLeave, processAsynch, processDisconnect, processSynch, queueContainerMessage, sendCreateMsg |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ecf.core.IContainer |
---|
addListener, getAdapter, getConnectedID, removeListener |
Methods inherited from interface org.eclipse.ecf.core.IIdentifiable |
---|
getID |
Field Detail |
---|
public static final java.lang.String XMPP_GROUPCHAT_DELEGATE_ID
Constructor Detail |
---|
public XMPPGroupChatSOContainer(ISharedObjectContainerConfig config, ISynchAsynchConnection conn, org.jivesoftware.smack.XMPPConnection xmppconn, Namespace usernamespace) throws IDCreateException
IDCreateException
public XMPPGroupChatSOContainer(ISynchAsynchConnection conn, org.jivesoftware.smack.XMPPConnection xmppconn, Namespace usernamespace) throws IDCreateException
IDCreateException
Method Detail |
---|
public void dispose()
IContainer
dispose
in interface IContainer
dispose
in class ClientSOContainer
protected void sendMessage(ContainerMessage data) throws java.io.IOException
sendMessage
in class ClientSOContainer
java.io.IOException
protected void handleChatMessage(org.jivesoftware.smack.packet.Message mess) throws java.io.IOException
java.io.IOException
protected boolean verifyToIDForSharedObjectMessage(ID toID)
verifyToIDForSharedObjectMessage
in class SOContainer
protected void handleContainerMessage(ContainerMessage mess) throws java.io.IOException
java.io.IOException
protected void handleIQMessage(org.jivesoftware.smack.packet.IQ mess) throws java.io.IOException
java.io.IOException
protected void handlePresenceMessage(org.jivesoftware.smack.packet.Presence mess) throws java.io.IOException
java.io.IOException
protected void handleChatMembershipEvent(java.lang.String from, boolean add)
protected void handleXMPPMessage(org.jivesoftware.smack.packet.Packet aPacket)
protected void initializeSharedObject() throws IDCreateException
IDCreateException
protected void addSharedObjectToContainer(ID remote) throws SharedObjectAddException
SharedObjectAddException
protected void cleanUpConnectFail()
public Namespace getConnectNamespace()
IContainer
getConnectNamespace
in interface IContainer
getConnectNamespace
in class SOContainer
public void connect(ID remote, IConnectContext connectContext) throws ContainerConnectException
IContainer
connect
in interface IContainer
connect
in class ClientSOContainer
remote
- the ID of the remote server or group to connect toconnectContext
- any required context to allow this container to authenticate
ContainerConnectException
- thrown if communication cannot be established with remote
servicepublic void disconnect()
IContainer
disconnect
in interface IContainer
disconnect
in class ClientSOContainer
protected SOContext createSharedObjectContext(SOConfig soconfig, IQueueEnqueue queue)
createSharedObjectContext
in class SOContainer
protected ID createChatRoomID(java.lang.String groupName) throws IDCreateException
IDCreateException
protected ISynchAsynchConnection createConnection(ID remoteSpace, java.lang.Object data) throws ConnectionInstantiationException
createConnection
in class ClientSOContainer
ConnectionInstantiationException
public void addMessageListener(IMessageListener listener)
IChatRoomContainer
addMessageListener
in interface IChatRoomContainer
listener
- the listener to addpublic void removeMessageListener(IMessageListener msgListener)
removeMessageListener
in interface IChatRoomContainer
public IChatMessageSender getChatMessageSender()
IChatRoomContainer
getChatMessageSender
in interface IChatRoomContainer
public void connect(java.lang.String groupName) throws ContainerConnectException
ContainerConnectException
public void addChatParticipantListener(IChatParticipantListener participantListener)
IChatRoomContainer
addChatParticipantListener
in interface IChatRoomContainer
public void removeChatParticipantListener(IChatParticipantListener participantListener)
IChatRoomContainer
removeChatParticipantListener
in interface IChatRoomContainer
participantListener
- the participant listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |