|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jabber.jabberbeans.IQBean
IQBean is a bean used to utilize the 'iq' functionality of the jabber protocol. IQ is used for setting and reading values, including user information (for logging on).
IQBean, like most of the other beans in jabberbeans, relies on ConnectionBean to provide the actual network socket to the server. IQBean will not operate until a connection is set.
Constructor Summary | |
IQBean()
Creates a new IQBean instance. |
|
IQBean(ConnectionBean connection)
Creates a new IQBean instance, and registers it with an
existing connection |
Method Summary | |
void |
addPacketListener(PacketListener l)
addPacketListener registers a packet listener with our
filtered packet rebroadcaster. |
void |
delPacketListener(PacketListener l)
delPacketListener unregisters a packet listener with our
filtered packet rebroadcaster. |
ConnectionBean |
getConnection()
returns the connection bean in use, or null if none |
void |
send(InfoQuery packet)
Send out a packet through the ConnectionBean. |
void |
setConnection(ConnectionBean connection)
sets the connection bean required for the IQBean to operate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IQBean()
IQBean
instance.
public IQBean(ConnectionBean connection)
IQBean
instance, and registers it with an
existing connection
connection
- ConnectionBean
we will monitorMethod Detail |
public void send(InfoQuery packet)
packet
- an InfoQuery
packetpublic void setConnection(ConnectionBean connection)
connection
- a ConnectionBean
value which maps to
a server connection.public ConnectionBean getConnection()
ConnectionBean
valuepublic final void addPacketListener(PacketListener l)
addPacketListener
registers a packet listener with our
filtered packet rebroadcaster.
addPacketListener
in interface PacketListenerRegistrar
l
- a PacketListener
valuepublic final void delPacketListener(PacketListener l)
delPacketListener
unregisters a packet listener with our
filtered packet rebroadcaster.
delPacketListener
in interface PacketListenerRegistrar
l
- a PacketListener
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |