public class WebSocketConnector extends AbstractWebSocketConnector
Connector.ConnectedHandler, Connector.DisconnectedHandler, Connector.EncryptionEstablishedHandler, Connector.ErrorHandler, Connector.StanzaReceivedHandler, Connector.StanzaSendingHandler, Connector.State, Connector.StateChangedHandler, Connector.StreamTerminatedHandler
context, FORCE_RFC_KEY, log, rfcCompatible
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 |
---|
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, terminateStream
public WebSocketConnector(Context context)
public boolean isSecure()
Connector
true> if connection is secured and encrypted.
protected void onStreamTerminate() throws JaxmppException
onStreamTerminate
in class AbstractWebSocketConnector
JaxmppException
public void send(String data) throws JaxmppException
send
in class AbstractWebSocketConnector
JaxmppException
public void start() throws JaxmppException
Connector
start
in interface Connector
start
in class AbstractWebSocketConnector
JaxmppException
public void stop() throws JaxmppException
Connector
stop
in interface Connector
stop
in class AbstractWebSocketConnector
JaxmppException
protected void terminateAllWorkers() throws JaxmppException
terminateAllWorkers
in class AbstractWebSocketConnector
JaxmppException
protected void workerTerminated()
Copyright © 2006–2018 Tigase. All rights reserved.