tigase.jaxmpp.core.client.xmpp.modules.disco
Class DiscoItemsModule

java.lang.Object
  extended by tigase.jaxmpp.core.client.xmpp.modules.AbstractIQModule
      extended by tigase.jaxmpp.core.client.xmpp.modules.disco.DiscoItemsModule
All Implemented Interfaces:
XmppModule

public class DiscoItemsModule
extends AbstractIQModule


Nested Class Summary
static class DiscoItemsModule.DiscoItemEvent
           
static class DiscoItemsModule.DiscoItemsAsyncCallback
           
static class DiscoItemsModule.Item
           
 
Field Summary
static Criteria CRIT
           
static EventType ItemsRequested
           
 
Fields inherited from class tigase.jaxmpp.core.client.xmpp.modules.AbstractIQModule
log, observable, sessionObject, writer
 
Constructor Summary
DiscoItemsModule(Observable parentObservable, SessionObject sessionObject, PacketWriter packetWriter)
           
 
Method Summary
 Criteria getCriteria()
          Criteria
 String[] getFeatures()
           Returns features what are implemented by Module.
 void getItems(JID jid, AsyncCallback callback)
           
 void getItems(JID jid, DiscoItemsModule.DiscoItemsAsyncCallback callback)
           
 void getItems(JID jid, String node, AsyncCallback callback)
           
protected  void processGet(IQ element)
          Method for processing stanza <iq type='get'>.
protected  void processSet(IQ element)
          Method for processing stanza <iq type='set'>.
 
Methods inherited from class tigase.jaxmpp.core.client.xmpp.modules.AbstractIQModule
addListener, addListener, process, removeAllListeners, removeListener, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CRIT

public static final Criteria CRIT

ItemsRequested

public static final EventType ItemsRequested
Constructor Detail

DiscoItemsModule

public DiscoItemsModule(Observable parentObservable,
                        SessionObject sessionObject,
                        PacketWriter packetWriter)
Method Detail

getCriteria

public Criteria getCriteria()
Description copied from interface: XmppModule
Criteria

Returns:

getFeatures

public String[] getFeatures()
Description copied from interface: XmppModule

Returns features what are implemented by Module.

See Service Discovery Features

Returns:
array of features

getItems

public void getItems(JID jid,
                     AsyncCallback callback)
              throws XMLException,
                     JaxmppException
Throws:
XMLException
JaxmppException

getItems

public void getItems(JID jid,
                     DiscoItemsModule.DiscoItemsAsyncCallback callback)
              throws XMLException,
                     JaxmppException
Throws:
XMLException
JaxmppException

getItems

public void getItems(JID jid,
                     String node,
                     AsyncCallback callback)
              throws XMLException,
                     JaxmppException
Throws:
XMLException
JaxmppException

processGet

protected void processGet(IQ element)
                   throws XMPPException,
                          XMLException,
                          JaxmppException
Description copied from class: AbstractIQModule
Method for processing stanza <iq type='get'>.

Specified by:
processGet in class AbstractIQModule
Parameters:
element - incoming XMPP stanza
Throws:
XMPPException
XMLException
JaxmppException

processSet

protected void processSet(IQ element)
                   throws XMPPException,
                          XMLException,
                          JaxmppException
Description copied from class: AbstractIQModule
Method for processing stanza <iq type='set'>.

Specified by:
processSet in class AbstractIQModule
Parameters:
element - incoming XMPP stanza
Throws:
XMPPException
XMLException
JaxmppException


Copyright © 2006-2012 Tigase. All Rights Reserved.