|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.ou.kmi.buddyspace.core.BSAgentsBean
BSAgentsBean
provides agents functionality handling.
It relies on BSInfoQueryBean
, which must be set after each
reconnection.
Field Summary | |
protected IQAgents |
agents
|
protected java.util.Vector |
agentsListeners
|
protected IQBean |
iqBean
|
protected java.lang.String |
name
|
protected java.lang.String |
servedID
|
Constructor Summary | |
BSAgentsBean()
Constructor |
|
BSAgentsBean(IQBean iqBean)
Constructor, which sets existing and connected IQBean . |
Method Summary | |
void |
addAgentsListener(BSAgentsListener listener)
Adds BSAgentsListener to listeners notified when
agents event occures. |
IQAgents |
agents()
Returns IQAgents extension. |
java.util.Enumeration |
agentsEnumeration()
Returns Enumeration of agents. |
protected void |
fireAgentsError(InfoQuery iq)
Notifies agents listeners when error arrives. |
protected void |
fireAgentsListReceived()
Notifies agents listeners when agents list arrives. |
boolean |
getAgents()
Sends request for agents list. |
IQBean |
getIQBean()
Returns currently used IQBean . |
protected void |
handleError(InfoQuery iq)
Handles InfoQuery packet, if it does contain an error. |
protected void |
handleResult(InfoQuery iq)
Handles InfoQuery packet, if it does contain a result. |
protected void |
handleSet(InfoQuery iq)
Handles InfoQuery packet, if it IQ-set. |
void |
prepareToDestroy()
Frees all object bindings to allow object destroy |
void |
receivedPacket(PacketEvent pe)
Invoked when a IQ packet is received. |
void |
removeAgentsListener(BSAgentsListener listener)
Removes BSAgentsListener to listeners notified when
agents event occures. |
void |
removeAllAgentsListeners()
Removes all listeners notified when agents event occures. |
void |
sendFailed(PacketEvent pe)
Invoked when a IQ packet send failes. |
void |
sentPacket(PacketEvent pe)
Invoked when a IQ packet is sent. |
void |
setIQBean(IQBean iqBean)
Sets existing and connected IQBean . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String servedID
protected IQBean iqBean
protected IQAgents agents
protected final java.lang.String name
protected java.util.Vector agentsListeners
Constructor Detail |
public BSAgentsBean()
public BSAgentsBean(IQBean iqBean)
IQBean
.
Then this is registered as listener for IQ packets.
Method Detail |
public void setIQBean(IQBean iqBean)
IQBean
.
Then this is registered as listener for IQ packets.
public IQBean getIQBean()
IQBean
.
public void prepareToDestroy()
public boolean getAgents()
public IQAgents agents()
IQAgents
extension.
public java.util.Enumeration agentsEnumeration()
Enumeration
of agents.
public void receivedPacket(PacketEvent pe)
public void sendFailed(PacketEvent pe)
public void sentPacket(PacketEvent pe)
protected void handleError(InfoQuery iq)
InfoQuery
packet, if it does contain an error.
Before this is called it checks if that is response on the sent IQ
agents packet.
protected void handleResult(InfoQuery iq)
InfoQuery
packet, if it does contain a result.
Before this is called it checks if that is response on the sent IQ
agents packet.
protected void handleSet(InfoQuery iq)
InfoQuery
packet, if it IQ-set.
Before this is called it checks if that is response on the sent IQ
agents packet.
public void addAgentsListener(BSAgentsListener listener)
BSAgentsListener
to listeners notified when
agents event occures.
removeAgentsListener(edu.ou.kmi.buddyspace.core.BSAgentsListener)
,
removeAllAgentsListeners()
,
fireAgentsListReceived()
public void removeAgentsListener(BSAgentsListener listener)
BSAgentsListener
to listeners notified when
agents event occures.
addAgentsListener(edu.ou.kmi.buddyspace.core.BSAgentsListener)
,
removeAllAgentsListeners()
,
fireAgentsListReceived()
public void removeAllAgentsListeners()
addAgentsListener(edu.ou.kmi.buddyspace.core.BSAgentsListener)
,
removeAgentsListener(edu.ou.kmi.buddyspace.core.BSAgentsListener)
,
fireAgentsListReceived()
protected void fireAgentsListReceived()
addAgentsListener(edu.ou.kmi.buddyspace.core.BSAgentsListener)
,
removeAgentsListener(edu.ou.kmi.buddyspace.core.BSAgentsListener)
,
removeAllAgentsListeners()
protected void fireAgentsError(InfoQuery iq)
addAgentsListener(edu.ou.kmi.buddyspace.core.BSAgentsListener)
,
removeAgentsListener(edu.ou.kmi.buddyspace.core.BSAgentsListener)
,
removeAllAgentsListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |