|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.ou.kmi.buddyspace.plugins.disco.core.BSDiscoBean
BSDiscoBean
provides jabber disco.
It relies on IQBean
(this must be reset after reconnection).
Field Summary | |
protected ConnectionBean |
connBean
|
protected java.util.Vector |
discoListeners
|
protected java.lang.String |
name
|
Constructor Summary | |
BSDiscoBean()
Constructor |
Method Summary | |
void |
addDiscoListener(BSDiscoListener listener)
Adds BSDiscoListener to listeners notified when
disco events. |
void |
disconnected()
Called when disconnected |
boolean |
discoverInfo(JID jid,
PacketID id)
Discovers info of the given jid |
boolean |
discoverInfo(JID jid,
java.lang.String node,
PacketID id)
Discovers info of the given jid and node |
boolean |
discoverItems(JID jid,
PacketID id)
Discovers items of the given jid |
boolean |
discoverItems(JID jid,
java.lang.String node,
PacketID id)
Discovers items of the given jid and node |
ConnectionBean |
getConnection()
Returns currently used ConnectionBean . |
protected void |
prepareToDestroy()
Frees all object bindings to allow object destroy |
void |
receivedPacket(PacketEvent pe)
called when a packet is received and processed. |
void |
removeAllDiscoListeners()
Removes all listeners notified when presence state of some of buddies changes. |
void |
removeDiscoListener(BSDiscoListener listener)
Removes BSDiscoListener to listeners notified about
disco events. |
void |
sendFailed(PacketEvent pe)
called if a packet is not successfully sent (for instance, if the connection dies while the packet is queued, or a packet is sent while disconnected). |
boolean |
sendIQ(InfoQuery iq)
Sends given iq packet |
void |
sentPacket(PacketEvent pe)
called whenever a local client sends a packet, after the sending is successful |
void |
setConnection(ConnectionBean connBean)
Sets existing and connected ConnectionBean . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ConnectionBean connBean
protected java.util.Vector discoListeners
protected final java.lang.String name
Constructor Detail |
public BSDiscoBean()
Method Detail |
public void setConnection(ConnectionBean connBean)
ConnectionBean
.
Then this is registered as listener for packets.
public ConnectionBean getConnection()
ConnectionBean
.
public void disconnected()
public boolean discoverItems(JID jid, java.lang.String node, PacketID id)
public boolean discoverItems(JID jid, PacketID id)
public boolean discoverInfo(JID jid, java.lang.String node, PacketID id)
public boolean discoverInfo(JID jid, PacketID id)
public boolean sendIQ(InfoQuery iq)
protected void prepareToDestroy()
public void receivedPacket(PacketEvent pe)
public void sendFailed(PacketEvent pe)
public void sentPacket(PacketEvent pe)
public void addDiscoListener(BSDiscoListener listener)
BSDiscoListener
to listeners notified when
disco events.
#removePresenceListener
,
#removeAllPresenceListeners
,
#firePresenceChanged
,
#fireSubscriptionRequested
,
#fireSubscriptionApproved
public void removeDiscoListener(BSDiscoListener listener)
BSDiscoListener
to listeners notified about
disco events.
#addPresenceListener
,
#removeAllPresenceListeners
,
#firePresenceChanged
,
#fireSubscriptionRequested
,
#fireSubscriptionApproved
public void removeAllDiscoListeners()
#addPresenceListener
,
#removePresenceListener
,
#firePresenceChanged
,
#fireSubscriptionRequested
,
#fireSubscriptionApproved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |