edu.ou.kmi.buddyspace.core
Class BSInfoQueryBean

java.lang.Object
  |
  +--edu.ou.kmi.buddyspace.core.BSInfoQueryBean

public class BSInfoQueryBean
extends java.lang.Object

BSInfoQueryBean handles IQ part of jabber protocol. It relies on BSConnectionBean which provides actual connection. BSInfoQuery.setConnection function must be called after each connection establishment.


Method Summary
 void addIQListener(BSIQListener listener)
          Adds BSIQListener
protected  ConnectionBean getConnection()
          Returns currently used ConnectionBean.
 IQBean getIQBean()
          Returns currently used IQBean.
protected  void prepareToDestroy()
          Frees all object bindings to allow object destroy
 void receivedPacket(PacketEvent packetEvent)
          Invoked when a message packet is received.
 void sendFailed(PacketEvent packetEvent)
          Invoked when a message packet send failes.
 void sendOOB(JID jid, java.lang.String url)
          Sends packet including OOB extension.
 void sentPacket(PacketEvent packetEvent)
          Invoked when a message packet is sent.
protected  void setConnection(ConnectionBean connection)
          Sets existing and connected ConnectionBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setConnection

protected void setConnection(ConnectionBean connection)
Sets existing and connected ConnectionBean. Then IQBean is created and this is registered as listener for IQ packets.


getConnection

protected ConnectionBean getConnection()
Returns currently used ConnectionBean.


getIQBean

public IQBean getIQBean()
Returns currently used IQBean.


prepareToDestroy

protected void prepareToDestroy()
Frees all object bindings to allow object destroy


receivedPacket

public void receivedPacket(PacketEvent packetEvent)
Invoked when a message packet is received.


sendFailed

public void sendFailed(PacketEvent packetEvent)
Invoked when a message packet send failes.


sentPacket

public void sentPacket(PacketEvent packetEvent)
Invoked when a message packet is sent.


sendOOB

public void sendOOB(JID jid,
                    java.lang.String url)
Sends packet including OOB extension. Does transfer the data!


addIQListener

public void addIQListener(BSIQListener listener)
Adds BSIQListener