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
XMLException
public void appendToBody(Element stanza) throws XMLException
XMLException
public void execute()
execute
in interface com.google.gwt.core.client.Scheduler.ScheduledCommand
public String getRid()
BoshRequest
getRid
in interface BoshRequest
protected abstract void onError(int responseCode, String data, Element response, Throwable caught) throws JaxmppException
JaxmppException
protected abstract void onSuccess(int responseCode, String data, Element response) throws JaxmppException
JaxmppException
protected abstract void onTerminate(int responseCode, String data, Element response) throws JaxmppException
JaxmppException
public void terminate()
BoshRequest
terminate
in interface BoshRequest
Copyright © 2006–2016 Tigase. All rights reserved.