tigase.jaxmpp.gwt.client.connectors
Class BoshWorker
java.lang.Object
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(BoshConnector connector,
com.google.gwt.http.client.RequestBuilder requestBuilder,
tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.xml.Element element)
|
BoshWorker
public BoshWorker(BoshConnector connector,
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
appendToBody
public void appendToBody(tigase.jaxmpp.core.client.xml.Element stanza)
throws tigase.jaxmpp.core.client.xml.XMLException
- Throws:
tigase.jaxmpp.core.client.xml.XMLException
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-2013 Tigase. All Rights Reserved.