tigase.jaxmpp.core.client.xmpp.modules
Class SoftwareVersionModule

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

public class SoftwareVersionModule
extends AbstractIQModule

Implementation of XEP-0092: Software Version.


Nested Class Summary
static class SoftwareVersionModule.SoftwareVersionAsyncCallback
          Software version callback.
 
Field Summary
static String DEFAULT_NAME_VAL
          Default software name.
static String NAME_KEY
          Key to keep software name in SessionObject.
static String OS_KEY
          Key to keep operating system name in SessionObject.
static String VERSION_KEY
          Key to keep software version in SessionObject.
 
Fields inherited from class tigase.jaxmpp.core.client.xmpp.modules.AbstractIQModule
log, observable, sessionObject, writer
 
Constructor Summary
SoftwareVersionModule(Observable parentObservable, SessionObject sessionObject, PacketWriter packetWriter)
           
 
Method Summary
 void checkSoftwareVersion(JID jid, AsyncCallback callback)
          Requests software version for given entity.
 void checkSoftwareVersion(JID jid, SoftwareVersionModule.SoftwareVersionAsyncCallback callback)
          Requests software version for given entity.
 Criteria getCriteria()
          Criteria
 String[] getFeatures()
           Returns features what are implemented by Module.
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

DEFAULT_NAME_VAL

public static final String DEFAULT_NAME_VAL
Default software name.

See Also:
Constant Field Values

NAME_KEY

public static final String NAME_KEY
Key to keep software name in SessionObject.

See Also:
Constant Field Values

OS_KEY

public static final String OS_KEY
Key to keep operating system name in SessionObject.

See Also:
Constant Field Values

VERSION_KEY

public static final String VERSION_KEY
Key to keep software version in SessionObject.

See Also:
Constant Field Values
Constructor Detail

SoftwareVersionModule

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

checkSoftwareVersion

public void checkSoftwareVersion(JID jid,
                                 AsyncCallback callback)
                          throws JaxmppException
Requests software version for given entity.

Parameters:
jid - entity
callback - general callback
Throws:
JaxmppException

checkSoftwareVersion

public void checkSoftwareVersion(JID jid,
                                 SoftwareVersionModule.SoftwareVersionAsyncCallback callback)
                          throws XMLException,
                                 JaxmppException
Requests software version for given entity.

Parameters:
jid - entity
callback - software version callback
Throws:
XMLException
JaxmppException

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

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.