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 |
static String |
XMPP_CHAT_SERVICE_PROPERTY
An optional property, "conference" is used as default chat service.
|
static String |
XMPP_HOST_PROPERTY |
static String |
XMPP_LOGIN_PROPERTY |
static String |
XMPP_PASSWORD_PROPERTY |
static String |
XMPP_PORT_PROPERTY
An optional property, port 5222 is used as default XMPP port.
|
static String |
XMPP_SECURE_CONNECTION_PROPERTY |
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(Collection<EventSubject> localSubjects,
String externalSubject,
Map<String,String> properties) |
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) |
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() |
protected void |
startupExternal() |
convertToExternalSubject, getEventManager, getExternalEventSource, getExternalSubject, getLocalSubjects, isRunning, onExternalEvent, receivesExternalEvents, receivesLocalEvents, shutdown, startup, startup, startuppublic static final String XMPP_HOST_PROPERTY
public static final String XMPP_PORT_PROPERTY
public static final String XMPP_CHAT_SERVICE_PROPERTY
public static final String XMPP_SECURE_CONNECTION_PROPERTY
public static final String XMPP_LOGIN_PROPERTY
public static final String XMPP_PASSWORD_PROPERTY
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 XMPPBridge(Collection<EventSubject> localSubjects, String externalSubject, Map<String,String> properties)
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
startupExternal in class EventBridgeExceptionprotected void shutdownExternal()
throws Exception
shutdownExternal in class EventBridgeExceptionprotected void sendExternalEvent(CayenneEvent localEvent) throws Exception
sendExternalEvent in class EventBridgeExceptionCopyright © 2001–2019 Apache Cayenne. All rights reserved.