public class BoshConnector extends AbstractBoshConnector
AbstractBoshConnector.BoshPacketReceivedHandler, AbstractBoshConnector.BoshPacketSendingHandler
Connector.ConnectedHandler, Connector.DisconnectedHandler, Connector.EncryptionEstablishedHandler, Connector.ErrorHandler, Connector.StanzaReceivedHandler, Connector.StanzaSendingHandler, Connector.State, Connector.StateChangedHandler, Connector.StreamTerminatedHandler
Modifier and Type | Field and Description |
---|---|
static String |
BOSH_IGNORE_SERVER_HOST
property used to disable usage of
|
BOSH_SERVICE_URL_KEY, context, log, requests, RID_KEY, SID_KEY
COMPRESSED_KEY, CONNECTOR_STAGE_KEY, CONNECTOR_STAGE_TIMESTAMP_KEY, DISABLE_KEEPALIVE_KEY, ENCRYPTED_KEY, EXTERNAL_KEEPALIVE_KEY, PROXY_HOST, PROXY_PORT, PROXY_TYPE, RECONNECTING_KEY, SEE_OTHER_HOST_KEY, TRUST_MANAGERS_KEY
Constructor and Description |
---|
BoshConnector(Context context) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
handleSeeOtherHost(Element response) |
protected void |
onError(BoshRequest request,
int responseCode,
String responseData,
Element response,
Throwable caught) |
protected void |
onResponse(BoshRequest request,
int responseCode,
String responseData,
Element response) |
protected void |
onTerminate(BoshRequest request,
int responseCode,
String responseData,
Element response) |
protected Element |
prepareBody(Element payload) |
protected void |
processSendData(Element element) |
protected void |
setCurrentWorker(BoshWorker worker)
Keep handle to current BoshWorker instance until stanza is sent
|
addToRequests, countActiveRequests, createSessionLogic, fireOnConnected, fireOnError, fireOnStanzaReceived, fireOnTerminate, getSid, getState, isCompressed, isSecure, keepalive, nextRid, prepareBody, prepareRetartBody, prepareStartBody, prepareTerminateBody, removeFromRequests, restartStream, send, send, setSid, setStage, start, stop, stop, terminateAllWorkers
public static final String BOSH_IGNORE_SERVER_HOST
public BoshConnector(Context context)
protected Element prepareBody(Element payload) throws XMLException
prepareBody
in class AbstractBoshConnector
XMLException
protected void onResponse(BoshRequest request, int responseCode, String responseData, Element response) throws JaxmppException
onResponse
in class AbstractBoshConnector
JaxmppException
protected void processSendData(Element element) throws XMLException, JaxmppException
processSendData
in class AbstractBoshConnector
XMLException
JaxmppException
protected void setCurrentWorker(BoshWorker worker)
worker
- protected void onError(BoshRequest request, int responseCode, String responseData, Element response, Throwable caught) throws JaxmppException
onError
in class AbstractBoshConnector
JaxmppException
protected void onTerminate(BoshRequest request, int responseCode, String responseData, Element response) throws JaxmppException
onTerminate
in class AbstractBoshConnector
JaxmppException
protected boolean handleSeeOtherHost(Element response) throws JaxmppException
JaxmppException
Copyright © 2006–2016 Tigase. All rights reserved.