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, 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.public void start()
throws XMLException,
JaxmppException
Connectorstart in interface Connectorstart in class AbstractWebSocketConnectorXMLExceptionJaxmppExceptionpublic void stop()
throws XMLException,
JaxmppException
Connectorstop in interface Connectorstop in class AbstractWebSocketConnectorXMLExceptionJaxmppExceptionpublic void send(String data) throws JaxmppException
send in class AbstractWebSocketConnectorJaxmppExceptionprotected void onStreamTerminate()
throws JaxmppException
onStreamTerminate in class AbstractWebSocketConnectorJaxmppExceptionprotected void terminateAllWorkers()
throws JaxmppException
terminateAllWorkers in class AbstractWebSocketConnectorJaxmppExceptionprotected void workerTerminated()
Copyright © 2006–2016 Tigase. All rights reserved.