Class XmppConnectionBean
java.lang.Object
edu.internet2.middleware.grouper.xmpp.XmppConnectionBean
represents a connection to an XMPP server. There is one connection per server/port/user/resource
-
Constructor Summary
ConstructorDescriptiondefault constructorXmppConnectionBean
(String theResource) constructor with default everything and different resourceXmppConnectionBean
(String theServer, int thePort, String theUser, String theResource, String thePass) constructor with different stuff than the default -
Method Summary
Modifier and TypeMethodDescriptionorg.jivesoftware.smack.Chat
get or make a chatboolean
int
hashCode()
void
sendMessage
(String jabberIds, String payload) get a chat for a jabber id.org.jivesoftware.smack.XMPPConnection
get a connection objectxmppPass()
xmpp pass (decrypted if file)int
xmppPort()
port to connect to, or 1522 as defaultxmpp resourcexpp server to connect toxmppUser()
xmpp user
-
Constructor Details
-
XmppConnectionBean
public XmppConnectionBean()default constructor -
XmppConnectionBean
constructor with default everything and different resource- Parameters:
theResource
-
-
XmppConnectionBean
public XmppConnectionBean(String theServer, int thePort, String theUser, String theResource, String thePass) constructor with different stuff than the default- Parameters:
theServer
-thePort
-theUser
-theResource
-thePass
-
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
sendMessage
get a chat for a jabber id. Note this doesnt listen on the channel- Parameters:
jabberIds
-payload
- of the message
-
xmppConnection
public org.jivesoftware.smack.XMPPConnection xmppConnection()get a connection object- Returns:
- the connection object
-
xmppPass
xmpp pass (decrypted if file)- Returns:
- the pass
-
xmppPort
public int xmppPort()port to connect to, or 1522 as default- Returns:
- port
-
xmppResource
xmpp resource- Returns:
- the resource
-
xmppServer
xpp server to connect to- Returns:
- xmpp server
-
xmppUser
xmpp user- Returns:
- the user
-
chat
public org.jivesoftware.smack.Chat chat(String jabberId, org.jivesoftware.smack.MessageListener messageListener) get or make a chat- Parameters:
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- Returns:
- the chat
-