tigase.jaxmpp.gwt.client.connectors
Class BoshWorker

java.lang.Object
  extended by tigase.jaxmpp.gwt.client.connectors.BoshWorker
All Implemented Interfaces:
com.google.gwt.core.client.Scheduler.ScheduledCommand, Runnable, tigase.jaxmpp.core.client.connector.BoshRequest

public abstract class BoshWorker
extends Object
implements tigase.jaxmpp.core.client.connector.BoshRequest, com.google.gwt.core.client.Scheduler.ScheduledCommand


Constructor Summary
BoshWorker(com.google.gwt.http.client.RequestBuilder requestBuilder, tigase.jaxmpp.core.client.SessionObject sessionObject, tigase.jaxmpp.core.client.xml.Element element)
           
 
Method Summary
 boolean equals(Object obj)
           
 void execute()
           
 String getRid()
           
 int hashCode()
           
protected abstract  void onError(int responseCode, String data, tigase.jaxmpp.core.client.xml.Element response, Throwable caught)
           
protected abstract  void onSuccess(int responseCode, String data, tigase.jaxmpp.core.client.xml.Element response)
           
protected abstract  void onTerminate(int responseCode, String data, tigase.jaxmpp.core.client.xml.Element response)
           
 void run()
           
 void terminate()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BoshWorker

public BoshWorker(com.google.gwt.http.client.RequestBuilder requestBuilder,
                  tigase.jaxmpp.core.client.SessionObject sessionObject,
                  tigase.jaxmpp.core.client.xml.Element element)
           throws tigase.jaxmpp.core.client.xml.XMLException
Throws:
tigase.jaxmpp.core.client.xml.XMLException
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

execute

public void execute()
Specified by:
execute in interface com.google.gwt.core.client.Scheduler.ScheduledCommand

getRid

public String getRid()
Specified by:
getRid in interface tigase.jaxmpp.core.client.connector.BoshRequest

hashCode

public int hashCode()
Overrides:
hashCode in class Object

onError

protected abstract void onError(int responseCode,
                                String data,
                                tigase.jaxmpp.core.client.xml.Element response,
                                Throwable caught)
                         throws tigase.jaxmpp.core.client.exceptions.JaxmppException
Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException

onSuccess

protected abstract void onSuccess(int responseCode,
                                  String data,
                                  tigase.jaxmpp.core.client.xml.Element response)
                           throws tigase.jaxmpp.core.client.exceptions.JaxmppException
Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException

onTerminate

protected abstract void onTerminate(int responseCode,
                                    String data,
                                    tigase.jaxmpp.core.client.xml.Element response)
                             throws tigase.jaxmpp.core.client.exceptions.JaxmppException
Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException

run

public void run()
Specified by:
run in interface Runnable

terminate

public void terminate()
Specified by:
terminate in interface tigase.jaxmpp.core.client.connector.BoshRequest

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2012 Tigase. All Rights Reserved.