public class PingModule extends AbstractIQModule
Modifier and Type | Class and Description |
---|---|
static class |
PingModule.PingAsyncCallback
Ping callback.
|
context, log
Constructor and Description |
---|
PingModule() |
Modifier and Type | Method and Description |
---|---|
Criteria |
getCriteria()
Criteria
|
String[] |
getFeatures()
Returns features what are implemented by Module.
|
void |
ping(JID jid,
AsyncCallback asyncCallback)
Ping given XMPP entity.
|
void |
ping(JID jidInstance,
PingModule.PingAsyncCallback asyncCallback)
Ping given XMPP entity.
|
protected void |
processGet(IQ stanza)
Method for processing stanza
<iq type='get'> . |
protected void |
processSet(IQ stanza)
Method for processing stanza
<iq type='set'> . |
process
addExtension, getExtensionChain, getFeaturesWithExtensions, removeExtension, write, write, write
afterRegister, beforeRegister, beforeUnregister, fireEvent, getFirstChild, process, setContext
public Criteria getCriteria()
XmppModule
public String[] getFeatures()
XmppModule
Returns features what are implemented by Module.
public void ping(JID jid, AsyncCallback asyncCallback) throws JaxmppException
jid
- entity to ping.asyncCallback
- general callbackJaxmppException
public void ping(JID jidInstance, PingModule.PingAsyncCallback asyncCallback) throws JaxmppException
jid
- entity to ping.asyncCallback
- ping callbackJaxmppException
protected void processGet(IQ stanza) throws JaxmppException
AbstractIQModule
<iq type='get'>
.processGet
in class AbstractIQModule
stanza
- incoming XMPP stanzaJaxmppException
protected void processSet(IQ stanza) throws XMPPException, XMLException
AbstractIQModule
<iq type='set'>
.processSet
in class AbstractIQModule
stanza
- incoming XMPP stanzaXMPPException
XMLException
Copyright © 2006–2023 Tigase. All rights reserved.