public abstract class BoshWorker extends Object implements BoshRequest, com.google.gwt.core.client.Scheduler.ScheduledCommand
| Constructor and Description |
|---|
BoshWorker(BoshConnector connector,
com.google.gwt.http.client.RequestBuilder requestBuilder,
SessionObject sessionObject,
Element element) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendToBody(Element stanza) |
boolean |
equals(Object obj) |
void |
execute() |
String |
getRid()
Returns current response ID.
|
int |
hashCode() |
protected abstract void |
onError(int responseCode,
String data,
Element response,
Throwable caught) |
protected abstract void |
onSuccess(int responseCode,
String data,
Element response) |
protected abstract void |
onTerminate(int responseCode,
String data,
Element response) |
void |
run() |
void |
terminate()
Terminates request.
|
String |
toString() |
public BoshWorker(BoshConnector connector, com.google.gwt.http.client.RequestBuilder requestBuilder, SessionObject sessionObject, Element element) throws XMLException
XMLExceptionpublic void appendToBody(Element stanza) throws XMLException
XMLExceptionpublic void execute()
execute in interface com.google.gwt.core.client.Scheduler.ScheduledCommandpublic String getRid()
BoshRequestgetRid in interface BoshRequestprotected abstract void onError(int responseCode,
String data,
Element response,
Throwable caught)
throws JaxmppException
JaxmppExceptionprotected abstract void onSuccess(int responseCode,
String data,
Element response)
throws JaxmppException
JaxmppExceptionprotected abstract void onTerminate(int responseCode,
String data,
Element response)
throws JaxmppException
JaxmppExceptionpublic void terminate()
BoshRequestterminate in interface BoshRequestCopyright © 2006–2015 Tigase. All rights reserved.