public class XmppConnectionBean extends Object
Constructor and Description |
---|
XmppConnectionBean()
default constructor
|
XmppConnectionBean(String theResource)
constructor with default everything and different resource
|
XmppConnectionBean(String theServer,
int thePort,
String theUser,
String theResource,
String thePass)
constructor with different stuff than the default
|
Modifier and Type | Method and Description |
---|---|
org.jivesoftware.smack.Chat |
chat(String jabberId,
org.jivesoftware.smack.MessageListener messageListener)
get or make a chat
|
boolean |
equals(Object other) |
int |
hashCode() |
void |
sendMessage(String jabberIds,
String payload)
get a chat for a jabber id.
|
org.jivesoftware.smack.XMPPConnection |
xmppConnection()
get a connection object
|
String |
xmppPass()
xmpp pass (decrypted if file)
|
int |
xmppPort()
port to connect to, or 1522 as default
|
String |
xmppResource()
xmpp resource
|
String |
xmppServer()
xpp server to connect to
|
String |
xmppUser()
xmpp user
|
public XmppConnectionBean()
public XmppConnectionBean(String theResource)
theResource
- public boolean equals(Object other)
equals
in class Object
Object.equals(Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public void sendMessage(String jabberIds, String payload)
jabberIds
- payload
- of the messagepublic org.jivesoftware.smack.XMPPConnection xmppConnection()
public String xmppPass()
public int xmppPort()
public String xmppResource()
public String xmppServer()
public String xmppUser()
public org.jivesoftware.smack.Chat chat(String jabberId, org.jivesoftware.smack.MessageListener messageListener)
jabberId
- to chat withmessageListener
- to get callbacks on messages or null to just send. Note if there is already one registered, this
one wont be usedCopyright © 2016 Internet2. All rights reserved.