public class XMPPBridge extends EventBridge
This implementation is based on Smack XMPP client library from JiveSoftware.
Modifier and Type | Field and Description |
---|---|
protected String |
chatService |
protected boolean |
connected |
protected org.jivesoftware.smack.XMPPConnection |
connection |
protected org.jivesoftware.smack.GroupChat |
groupChat |
protected String |
loginId |
protected String |
password |
protected boolean |
secureConnection |
protected String |
sessionHandle |
protected String |
xmppHost |
protected int |
xmppPort |
eventManager, externalEventSource, externalSubject, localSubjects, mode, RECEIVE_EXTERNAL, RECEIVE_LOCAL, RECEIVE_LOCAL_EXTERNAL
Constructor and Description |
---|
XMPPBridge(Collection<EventSubject> localSubjects,
String externalSubject)
Creates an XMPPBridge.
|
XMPPBridge(EventSubject localSubject,
String externalSubject)
Creates an XMPPBridge.
|
Modifier and Type | Method and Description |
---|---|
String |
getChatService() |
String |
getLoginId() |
String |
getPassword() |
String |
getSessionHandle() |
String |
getXmppHost() |
int |
getXmppPort() |
boolean |
isSecureConnection() |
protected void |
sendExternalEvent(CayenneEvent localEvent)
Sends a Cayenne event over the transport supported by this bridge.
|
void |
setChatService(String chatService) |
void |
setLoginId(String loginId) |
void |
setPassword(String password) |
void |
setSecureConnection(boolean secureConnection) |
void |
setSessionHandle(String sessionHandle) |
void |
setXmppHost(String xmppHost) |
void |
setXmppPort(int xmppPort) |
protected void |
shutdownExternal()
Shuts down the external interface of the EventBridge, cleaning up and releasing any
resources used to communicate external events.
|
protected void |
startupExternal()
Starts an external interface of the EventBridge.
|
convertToExternalSubject, getEventManager, getExternalEventSource, getExternalSubject, getLocalSubjects, isRunning, onExternalEvent, receivesExternalEvents, receivesLocalEvents, shutdown, startup, startup, startup
protected boolean secureConnection
protected String loginId
protected String password
protected String xmppHost
protected int xmppPort
protected String chatService
protected String sessionHandle
protected org.jivesoftware.smack.XMPPConnection connection
protected org.jivesoftware.smack.GroupChat groupChat
protected boolean connected
public XMPPBridge(EventSubject localSubject, String externalSubject)
public XMPPBridge(Collection<EventSubject> localSubjects, String externalSubject)
public String getXmppHost()
public void setXmppHost(String xmppHost)
public int getXmppPort()
public void setXmppPort(int xmppPort)
public String getLoginId()
public void setLoginId(String loginId)
public String getPassword()
public void setPassword(String password)
public boolean isSecureConnection()
public void setSecureConnection(boolean secureConnection)
public String getChatService()
public void setChatService(String chatService)
public String getSessionHandle()
public void setSessionHandle(String sessionHandle)
protected void startupExternal() throws Exception
EventBridge
startupExternal
in class EventBridge
Exception
protected void shutdownExternal() throws Exception
EventBridge
shutdownExternal
in class EventBridge
Exception
protected void sendExternalEvent(CayenneEvent localEvent) throws Exception
EventBridge
sendExternalEvent
in class EventBridge
Exception
Copyright © 2001–2014 Apache Cayenne. All rights reserved.