public class WebSocketConnector extends AbstractWebSocketConnector
Connector.ConnectedHandler, Connector.DisconnectedHandler, Connector.EncryptionEstablishedHandler, Connector.ErrorHandler, Connector.StanzaReceivedHandler, Connector.StanzaSendingHandler, Connector.State, Connector.StateChangedHandler, Connector.StreamRestartedHandler, Connector.StreamTerminatedHandlercontext, FORCE_RFC_KEY, log, rfcCompatibleCOMPRESSED_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 |
|---|
WebSocketConnector(Context context) |
| Modifier and Type | Method and Description |
|---|---|
protected KeyManager[] |
getKeyManagers() |
boolean |
isSecure()
Returns connection security state.
|
protected void |
onErrorInThread(Exception e) |
protected void |
send(byte[] buffer) |
void |
send(Element stanza)
Sends given XML Element to server.
|
void |
send(String data) |
void |
start()
Starts connector.
|
protected void |
terminateAllWorkers() |
createSessionLogic, fireOnConnected, fireOnError, fireOnStanzaReceived, fireOnTerminate, getState, getTimeout, handleSeeOtherHost, handleSeeOtherUri, isCompressed, isRfc, keepalive, onError, onStreamStart, onStreamTerminate, processElement, restartStream, setStage, stop, stop, terminateStreampublic WebSocketConnector(Context context)
protected KeyManager[] getKeyManagers() throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic boolean isSecure()
Connectortrue> if connection is secured and encrypted.protected void onErrorInThread(Exception e) throws JaxmppException
JaxmppExceptionprotected void send(byte[] buffer)
throws JaxmppException
JaxmppExceptionpublic void send(Element stanza) throws JaxmppException
Connectorsend in interface Connectorsend in class AbstractWebSocketConnectorstanza - XML element to send.JaxmppExceptionpublic void send(String data) throws JaxmppException
send in class AbstractWebSocketConnectorJaxmppExceptionpublic void start()
throws JaxmppException
Connectorstart in interface Connectorstart in class AbstractWebSocketConnectorJaxmppExceptionprotected void terminateAllWorkers()
throws JaxmppException
terminateAllWorkers in class AbstractWebSocketConnectorJaxmppExceptionCopyright © 2006–2020 Tigase. All rights reserved.