public class BoshConnector
extends tigase.jaxmpp.core.client.connector.AbstractBoshConnector
tigase.jaxmpp.core.client.connector.AbstractBoshConnector.BoshPacketReceivedHandler, tigase.jaxmpp.core.client.connector.AbstractBoshConnector.BoshPacketSendingHandlertigase.jaxmpp.core.client.Connector.ConnectedHandler, tigase.jaxmpp.core.client.Connector.DisconnectedHandler, tigase.jaxmpp.core.client.Connector.EncryptionEstablishedHandler, tigase.jaxmpp.core.client.Connector.ErrorHandler, tigase.jaxmpp.core.client.Connector.StanzaReceivedHandler, tigase.jaxmpp.core.client.Connector.StanzaSendingHandler, tigase.jaxmpp.core.client.Connector.State, tigase.jaxmpp.core.client.Connector.StateChangedHandler, tigase.jaxmpp.core.client.Connector.StreamTerminatedHandler| Modifier and Type | Field and Description |
|---|---|
static String |
BOSH_IGNORE_SERVER_HOST
property used to disable usage of
|
| Constructor and Description |
|---|
BoshConnector(tigase.jaxmpp.core.client.Context context) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
handleSeeOtherHost(tigase.jaxmpp.core.client.xml.Element response) |
protected void |
onError(tigase.jaxmpp.core.client.connector.BoshRequest request,
int responseCode,
String responseData,
tigase.jaxmpp.core.client.xml.Element response,
Throwable caught) |
protected void |
onResponse(tigase.jaxmpp.core.client.connector.BoshRequest request,
int responseCode,
String responseData,
tigase.jaxmpp.core.client.xml.Element response) |
protected void |
onTerminate(tigase.jaxmpp.core.client.connector.BoshRequest request,
int responseCode,
String responseData,
tigase.jaxmpp.core.client.xml.Element response) |
protected tigase.jaxmpp.core.client.xml.Element |
prepareBody(tigase.jaxmpp.core.client.xml.Element payload) |
protected void |
processSendData(tigase.jaxmpp.core.client.xml.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, terminateAllWorkerspublic static final String BOSH_IGNORE_SERVER_HOST
protected tigase.jaxmpp.core.client.xml.Element prepareBody(tigase.jaxmpp.core.client.xml.Element payload)
throws tigase.jaxmpp.core.client.xml.XMLException
prepareBody in class tigase.jaxmpp.core.client.connector.AbstractBoshConnectortigase.jaxmpp.core.client.xml.XMLExceptionprotected void onResponse(tigase.jaxmpp.core.client.connector.BoshRequest request,
int responseCode,
String responseData,
tigase.jaxmpp.core.client.xml.Element response)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
onResponse in class tigase.jaxmpp.core.client.connector.AbstractBoshConnectortigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void processSendData(tigase.jaxmpp.core.client.xml.Element element)
throws tigase.jaxmpp.core.client.xml.XMLException,
tigase.jaxmpp.core.client.exceptions.JaxmppException
processSendData in class tigase.jaxmpp.core.client.connector.AbstractBoshConnectortigase.jaxmpp.core.client.xml.XMLExceptiontigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void setCurrentWorker(BoshWorker worker)
worker - protected void onError(tigase.jaxmpp.core.client.connector.BoshRequest request,
int responseCode,
String responseData,
tigase.jaxmpp.core.client.xml.Element response,
Throwable caught)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
onError in class tigase.jaxmpp.core.client.connector.AbstractBoshConnectortigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void onTerminate(tigase.jaxmpp.core.client.connector.BoshRequest request,
int responseCode,
String responseData,
tigase.jaxmpp.core.client.xml.Element response)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
onTerminate in class tigase.jaxmpp.core.client.connector.AbstractBoshConnectortigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected boolean handleSeeOtherHost(tigase.jaxmpp.core.client.xml.Element response)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionCopyright © 2006–2015 Tigase. All rights reserved.