public class WebSocketConnector extends AbstractWebSocketConnector
Connector.ConnectedHandler, Connector.DisconnectedHandler, Connector.EncryptionEstablishedHandler, Connector.ErrorHandler, Connector.StanzaReceivedHandler, Connector.StanzaSendingHandler, Connector.State, Connector.StateChangedHandler, 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 |
|---|---|
boolean |
isSecure()
Returns connection security state.
|
protected void |
onStreamTerminate() |
void |
send(String data) |
void |
start()
Starts connector.
|
void |
stop()
Stops connector and closes connections.
|
protected void |
terminateAllWorkers() |
protected void |
workerTerminated() |
createSessionLogic, fireOnConnected, fireOnError, fireOnStanzaReceived, fireOnTerminate, getState, getTimeout, handleSeeOtherHost, handleSeeOtherUri, isCompressed, isRfc, keepalive, onError, onStreamStart, processElement, restartStream, send, setStage, stop, terminateStreampublic WebSocketConnector(Context context)
public boolean isSecure()
Connectortrue> if connection is secured and encrypted.protected void onStreamTerminate()
throws JaxmppException
onStreamTerminate in class AbstractWebSocketConnectorJaxmppExceptionpublic void send(String data) throws JaxmppException
send in class AbstractWebSocketConnectorJaxmppExceptionpublic void start()
throws JaxmppException
Connectorstart in interface Connectorstart in class AbstractWebSocketConnectorJaxmppExceptionpublic void stop()
throws JaxmppException
Connectorstop in interface Connectorstop in class AbstractWebSocketConnectorJaxmppExceptionprotected void terminateAllWorkers()
throws JaxmppException
terminateAllWorkers in class AbstractWebSocketConnectorJaxmppExceptionprotected void workerTerminated()
Copyright © 2006–2018 Tigase. All rights reserved.