public class WebSocketConnector extends Object implements tigase.jaxmpp.core.client.Connector
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
log |
BodyReceived, COMPRESSED_KEY, Connected, CONNECTOR_STAGE_KEY, DISABLE_KEEPALIVE_KEY, ENCRYPTED_KEY, EncryptionEstablished, Error, EXTERNAL_KEEPALIVE_KEY, SEE_OTHER_HOST_KEY, StanzaReceived, StanzaSending, StateChanged, StreamTerminated, TRUST_MANAGERS_KEY| Constructor and Description |
|---|
WebSocketConnector(tigase.jaxmpp.core.client.observer.Observable parentObservable,
tigase.jaxmpp.core.client.SessionObject sessionObject) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(tigase.jaxmpp.core.client.observer.EventType eventType,
tigase.jaxmpp.core.client.observer.Listener<? extends tigase.jaxmpp.core.client.Connector.ConnectorEvent> listener) |
tigase.jaxmpp.core.client.XmppSessionLogic |
createSessionLogic(tigase.jaxmpp.core.client.XmppModulesManager modulesManager,
tigase.jaxmpp.core.client.PacketWriter writer) |
protected void |
fireOnConnected(tigase.jaxmpp.core.client.SessionObject sessionObject) |
protected void |
fireOnError(tigase.jaxmpp.core.client.xml.Element response,
Throwable caught,
tigase.jaxmpp.core.client.SessionObject sessionObject) |
protected void |
fireOnTerminate(tigase.jaxmpp.core.client.SessionObject sessionObject) |
tigase.jaxmpp.core.client.observer.Observable |
getObservable() |
tigase.jaxmpp.core.client.Connector.State |
getState() |
boolean |
isCompressed() |
boolean |
isSecure() |
void |
keepalive() |
protected void |
onError(tigase.jaxmpp.core.client.xml.Element elem,
Throwable ex) |
void |
removeAllListeners() |
void |
removeListener(tigase.jaxmpp.core.client.observer.EventType eventType,
tigase.jaxmpp.core.client.observer.Listener<tigase.jaxmpp.core.client.Connector.ConnectorEvent> listener) |
void |
restartStream() |
void |
send(tigase.jaxmpp.core.client.xml.Element stanza) |
void |
send(String data) |
void |
setObservable(tigase.jaxmpp.core.client.observer.Observable observable) |
protected void |
setStage(tigase.jaxmpp.core.client.Connector.State state) |
void |
start() |
void |
stop() |
void |
stop(boolean terminate) |
protected final Logger log
public WebSocketConnector(tigase.jaxmpp.core.client.observer.Observable parentObservable,
tigase.jaxmpp.core.client.SessionObject sessionObject)
public void addListener(tigase.jaxmpp.core.client.observer.EventType eventType,
tigase.jaxmpp.core.client.observer.Listener<? extends tigase.jaxmpp.core.client.Connector.ConnectorEvent> listener)
addListener in interface tigase.jaxmpp.core.client.Connectorpublic tigase.jaxmpp.core.client.XmppSessionLogic createSessionLogic(tigase.jaxmpp.core.client.XmppModulesManager modulesManager,
tigase.jaxmpp.core.client.PacketWriter writer)
createSessionLogic in interface tigase.jaxmpp.core.client.Connectorprotected void fireOnConnected(tigase.jaxmpp.core.client.SessionObject sessionObject)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void fireOnError(tigase.jaxmpp.core.client.xml.Element response,
Throwable caught,
tigase.jaxmpp.core.client.SessionObject sessionObject)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void fireOnTerminate(tigase.jaxmpp.core.client.SessionObject sessionObject)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic tigase.jaxmpp.core.client.observer.Observable getObservable()
getObservable in interface tigase.jaxmpp.core.client.Connectorpublic tigase.jaxmpp.core.client.Connector.State getState()
getState in interface tigase.jaxmpp.core.client.Connectorpublic boolean isCompressed()
isCompressed in interface tigase.jaxmpp.core.client.Connectorpublic boolean isSecure()
isSecure in interface tigase.jaxmpp.core.client.Connectorpublic void keepalive()
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
keepalive in interface tigase.jaxmpp.core.client.Connectortigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void onError(tigase.jaxmpp.core.client.xml.Element elem,
Throwable ex)
public void removeAllListeners()
removeAllListeners in interface tigase.jaxmpp.core.client.Connectorpublic void removeListener(tigase.jaxmpp.core.client.observer.EventType eventType,
tigase.jaxmpp.core.client.observer.Listener<tigase.jaxmpp.core.client.Connector.ConnectorEvent> listener)
removeListener in interface tigase.jaxmpp.core.client.Connectorpublic void restartStream()
throws tigase.jaxmpp.core.client.xml.XMLException,
tigase.jaxmpp.core.client.exceptions.JaxmppException
restartStream in interface tigase.jaxmpp.core.client.Connectortigase.jaxmpp.core.client.xml.XMLExceptiontigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void send(tigase.jaxmpp.core.client.xml.Element stanza)
throws tigase.jaxmpp.core.client.xml.XMLException,
tigase.jaxmpp.core.client.exceptions.JaxmppException
send in interface tigase.jaxmpp.core.client.Connectortigase.jaxmpp.core.client.xml.XMLExceptiontigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void send(String data) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void setObservable(tigase.jaxmpp.core.client.observer.Observable observable)
setObservable in interface tigase.jaxmpp.core.client.Connectorprotected void setStage(tigase.jaxmpp.core.client.Connector.State state)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void start()
throws tigase.jaxmpp.core.client.xml.XMLException,
tigase.jaxmpp.core.client.exceptions.JaxmppException
start in interface tigase.jaxmpp.core.client.Connectortigase.jaxmpp.core.client.xml.XMLExceptiontigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void stop()
throws tigase.jaxmpp.core.client.xml.XMLException,
tigase.jaxmpp.core.client.exceptions.JaxmppException
stop in interface tigase.jaxmpp.core.client.Connectortigase.jaxmpp.core.client.xml.XMLExceptiontigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void stop(boolean terminate)
throws tigase.jaxmpp.core.client.xml.XMLException,
tigase.jaxmpp.core.client.exceptions.JaxmppException
stop in interface tigase.jaxmpp.core.client.Connectortigase.jaxmpp.core.client.xml.XMLExceptiontigase.jaxmpp.core.client.exceptions.JaxmppExceptionCopyright © 2006–2014 Tigase. All rights reserved.