Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jabber.jabberbeans
Class IQBean  view IQBean download IQBean.java

java.lang.Object
  extended byorg.jabber.jabberbeans.IQBean
All Implemented Interfaces:
java.io.Serializable

public class IQBean
extends java.lang.Object
implements java.io.Serializable

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.

Version:
$Revision: 1.1 $

Nested Class Summary
(package private)  class IQBean.IQListener
           
 
Field Summary
private  ConnectionBean connection
           
private  java.util.Vector IQListeners
           
private  PacketListener rebroadcaster
           
 
Constructor Summary
IQBean()
           
IQBean(ConnectionBean connection)
           
 
Method Summary
 void addPacketListener(PacketListener l)
           
 void fireReceivedIQ(Packet l)
           
 void fireSentIQ(Packet l)
           
 ConnectionBean getConnection()
           
 void removePacketListener(PacketListener l)
           
 void send(InfoQuery packet)
           
 void setConnection(ConnectionBean connection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

private ConnectionBean connection

IQListeners

private java.util.Vector IQListeners

rebroadcaster

private PacketListener rebroadcaster
Constructor Detail

IQBean

public IQBean()

IQBean

public IQBean(ConnectionBean connection)
Method Detail

send

public void send(InfoQuery packet)
          throws java.io.IOException

setConnection

public void setConnection(ConnectionBean connection)

getConnection

public ConnectionBean getConnection()

addPacketListener

public void addPacketListener(PacketListener l)

removePacketListener

public void removePacketListener(PacketListener l)

fireReceivedIQ

public void fireReceivedIQ(Packet l)

fireSentIQ

public void fireSentIQ(Packet l)