|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.internet2.middleware.grouper.xmpp.XmppConnectionBean
public class XmppConnectionBean
represents a connection to an XMPP server. There is one connection per server/port/user/resource
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmppConnectionBean()
public XmppConnectionBean(String theResource)
theResource
- public XmppConnectionBean(String theServer, int thePort, String theUser, String theResource, String thePass)
theServer
- thePort
- theUser
- theResource
- thePass
- Method Detail |
---|
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 used
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |