tigase.jaxmpp.core.client
Interface AsyncCallback

All Known Implementing Classes:
AdHocCommansModule.AdHocCommansAsyncCallback, BookmarksModule.BookmarksAsyncCallback, DiscoInfoModule.DiscoInfoAsyncCallback, DiscoItemsModule.DiscoItemsAsyncCallback, PingModule.PingAsyncCallback, PubSubAsyncCallback, PubSubModule.PublishAsyncCallback, PubSubModule.RetrieveItemsAsyncCallback, PubSubModule.SubscriptionAsyncCallback, PubSubModule.SubscriptionOptionsAsyncCallback, SoftwareVersionModule.SoftwareVersionAsyncCallback, VCardModule.VCardAsyncCallback

public interface AsyncCallback

Main interface for callback of all IQ asynchronous request-response mechanism.

Author:
bmalkow

Method Summary
 void onError(Stanza responseStanza, XMPPException.ErrorCondition error)
          Called when received response has type error.
 void onSuccess(Stanza responseStanza)
          Called when received response has type result.
 void onTimeout()
          Called when response wasn't received in given time.
 

Method Detail

onError

void onError(Stanza responseStanza,
             XMPPException.ErrorCondition error)
             throws JaxmppException
Called when received response has type error.

Parameters:
responseStanza - received IQ stanza
error - error condition
Throws:
JaxmppException

onSuccess

void onSuccess(Stanza responseStanza)
               throws JaxmppException
Called when received response has type result.

Parameters:
responseStanza - received stanza
Throws:
JaxmppException

onTimeout

void onTimeout()
               throws JaxmppException
Called when response wasn't received in given time.

Throws:
JaxmppException


Copyright © 2006-2012 Tigase. All Rights Reserved.