Connector.ConnectorEvent, Connector.State| Modifier and Type | Field and Description |
|---|---|
protected Observable |
observable |
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 |
|---|
ConnectorWrapper(Observable parentObservable) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(EventType eventType,
Listener<? extends Connector.ConnectorEvent> listener)
Adds a listener bound by the given event type.
|
void |
addListener(Listener<? extends BaseEvent> listener) |
XmppSessionLogic |
createSessionLogic(XmppModulesManager modulesManager,
PacketWriter writer)
Returns instance of XmppSessionLogic to work with this
connector.
|
Connector |
getConnector() |
Observable |
getObservable()
Returns observable
|
Connector.State |
getState() |
boolean |
isCompressed()
Returns true when stream is compressed
|
boolean |
isSecure() |
void |
keepalive()
Whitespace ping.
|
void |
removeAllListeners()
Deprecated.
|
void |
removeListener(EventType eventType,
Listener<Connector.ConnectorEvent> listener) |
void |
restartStream() |
void |
send(Element stanza) |
void |
setConnector(Connector connector) |
void |
setObservable(Observable observable) |
void |
start() |
void |
stop() |
void |
stop(boolean terminate) |
protected final Observable observable
public ConnectorWrapper(Observable parentObservable)
public void addListener(EventType eventType, Listener<? extends Connector.ConnectorEvent> listener)
ConnectoraddListener in interface ConnectoreventType - type of eventlistener - the listenerpublic XmppSessionLogic createSessionLogic(XmppModulesManager modulesManager, PacketWriter writer)
ConnectorcreateSessionLogic in interface ConnectormodulesManager - module managerwriter - writerpublic Connector getConnector()
public Observable getObservable()
ConnectorgetObservable in interface Connectorpublic Connector.State getState()
public boolean isCompressed()
isCompressed in interface Connectorpublic void keepalive()
throws JaxmppException
Connectorkeepalive in interface ConnectorJaxmppException@Deprecated public void removeAllListeners()
removeAllListeners in interface Connectorpublic void removeListener(EventType eventType, Listener<Connector.ConnectorEvent> listener)
removeListener in interface Connectorpublic void restartStream()
throws XMLException,
JaxmppException
restartStream in interface ConnectorXMLExceptionJaxmppExceptionpublic void send(Element stanza) throws XMLException, JaxmppException
send in interface ConnectorXMLExceptionJaxmppExceptionpublic void setConnector(Connector connector)
public void setObservable(Observable observable)
setObservable in interface Connectorpublic void start()
throws XMLException,
JaxmppException
start in interface ConnectorXMLExceptionJaxmppExceptionpublic void stop()
throws XMLException,
JaxmppException
stop in interface ConnectorXMLExceptionJaxmppExceptionpublic void stop(boolean terminate)
throws XMLException,
JaxmppException
stop in interface ConnectorXMLExceptionJaxmppExceptionCopyright © 2006–2014 Tigase. All rights reserved.