edu.ou.kmi.buddyspace.plugins.browse.core
Class BSBrowseBean

java.lang.Object
  |
  +--edu.ou.kmi.buddyspace.plugins.browse.core.BSBrowseBean

public class BSBrowseBean
extends java.lang.Object

BSBrowseBean provides browsing. It relies on BrowseBean, which is initialized using given ConnectionBean (this must be reset after reconnection).


Field Summary
protected  BrowseBean browseBean
           
protected  java.lang.String name
           
 
Constructor Summary
BSBrowseBean()
          Constructor
BSBrowseBean(ConnectionBean connection)
          Constructor, which sets existing and connected ConnectionBean.
 
Method Summary
 void addBrowseListener(BrowseListener listener)
          Adds BSPresenceListener to listeners notified when presence state of some of buddies changes.
 void browseTo(java.lang.String jidStr, PacketID id, boolean refresh)
          Browses the given jid
 void clear()
          Clears the cache.
 void disconnected()
          Called when disconnected
 void error(InfoQuery iq, java.lang.String id)
          Invoked when an error occures.
 ConnectionBean getConnection()
          Returns currently used ConnectionBean.
protected  void prepareToDestroy()
          Frees all object bindings to allow object destroy
 void received(BrowseItem b, java.lang.String id)
          Invoked when a packet received.
 void removeBrowseListener(BrowseListener listener)
          Removes BSBrowseListener to listeners notified when presence state of some of buddies changes.
 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
 

Field Detail

browseBean

protected BrowseBean browseBean

name

protected final java.lang.String name
See Also:
Constant Field Values
Constructor Detail

BSBrowseBean

public BSBrowseBean()
Constructor


BSBrowseBean

public BSBrowseBean(ConnectionBean connection)
Constructor, which sets existing and connected ConnectionBean. Then this is registered as listener for packet events.

Method Detail

setConnection

public void setConnection(ConnectionBean connection)
Sets existing and connected ConnectionBean. Then this is registered as listener for packet and connection events.


getConnection

public ConnectionBean getConnection()
Returns currently used ConnectionBean.


disconnected

public void disconnected()
Called when disconnected


browseTo

public void browseTo(java.lang.String jidStr,
                     PacketID id,
                     boolean refresh)
Browses the given jid


clear

public void clear()
Clears the cache.


prepareToDestroy

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


error

public void error(InfoQuery iq,
                  java.lang.String id)
Invoked when an error occures.


received

public void received(BrowseItem b,
                     java.lang.String id)
Invoked when a packet received.


addBrowseListener

public void addBrowseListener(BrowseListener listener)
Adds BSPresenceListener to listeners notified when presence state of some of buddies changes.

See Also:
#removePresenceListener, #removeAllPresenceListeners, #firePresenceChanged, #fireSubscriptionRequested, #fireSubscriptionApproved

removeBrowseListener

public void removeBrowseListener(BrowseListener listener)
Removes BSBrowseListener to listeners notified when presence state of some of buddies changes.

See Also:
#addPresenceListener, #removeAllPresenceListeners, #firePresenceChanged, #fireSubscriptionRequested, #fireSubscriptionApproved