public class SoftwareVersionModule extends AbstractIQModule
Modifier and Type | Class and Description |
---|---|
static class |
SoftwareVersionModule.SoftwareVersionAsyncCallback
Software version callback.
|
Modifier and Type | Field and Description |
---|---|
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 . |
context, log
Constructor and Description |
---|
SoftwareVersionModule() |
Modifier and Type | Method and Description |
---|---|
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'> . |
process
addExtension, getExtensionChain, getFeaturesWithExtensions, removeExtension, write, write, write
afterRegister, beforeRegister, beforeUnregister, fireEvent, getFirstChild, process, setContext
public static final String DEFAULT_NAME_VAL
public static final String NAME_KEY
SessionObject
.public static final String OS_KEY
SessionObject
.public static final String VERSION_KEY
SessionObject
.public void checkSoftwareVersion(JID jid, AsyncCallback callback) throws JaxmppException
jid
- entitycallback
- general callbackJaxmppException
public void checkSoftwareVersion(JID jid, SoftwareVersionModule.SoftwareVersionAsyncCallback callback) throws XMLException, JaxmppException
jid
- entitycallback
- software version callbackXMLException
JaxmppException
public Criteria getCriteria()
XmppModule
public String[] getFeatures()
XmppModule
Returns features what are implemented by Module.
protected void processGet(IQ element) throws XMPPException, XMLException, JaxmppException
AbstractIQModule
<iq type='get'>
.processGet
in class AbstractIQModule
element
- incoming XMPP stanzaXMPPException
XMLException
JaxmppException
protected void processSet(IQ element) throws XMPPException, XMLException, JaxmppException
AbstractIQModule
<iq type='set'>
.processSet
in class AbstractIQModule
element
- incoming XMPP stanzaXMPPException
XMLException
JaxmppException
Copyright © 2006–2023 Tigase. All rights reserved.