public interface Connector
Connected : ConnectorEvent ()EncryptionEstablished :
ConnectorEvent ()Error : ConnectorEvent (caught)StateChanged :
ConnectorEvent ()StanzaReceived :
ConnectorEvent (stanza)StreamTerminated :
ConnectorEvent ()TRUST_MANAGER: Custom
TrustManager instead of dummy (accespts all
certificates) builded in.| Modifier and Type | Interface and Description |
|---|---|
static class |
Connector.ConnectorEvent
Event generated by Connector.
|
static class |
Connector.State |
| Modifier and Type | Field and Description |
|---|---|
static EventType |
BodyReceived |
static String |
COMPRESSED_KEY
Key set to true to determine if connection is already compressed
|
static EventType |
Connected
Event fires after creates XMPP Stream
|
static String |
CONNECTOR_STAGE_KEY |
static String |
DISABLE_KEEPALIVE_KEY |
static String |
ENCRYPTED_KEY |
static EventType |
EncryptionEstablished
Event fires after encrypted connection is established.
|
static EventType |
Error
Event fires on XMPP Stream error.
|
static String |
EXTERNAL_KEEPALIVE_KEY |
static String |
SEE_OTHER_HOST_KEY |
static EventType |
StanzaReceived
Event fires after creates XMPP Stream.
|
static EventType |
StanzaSending |
static EventType |
StateChanged
Event fires after connection state is changed.
|
static EventType |
StreamTerminated
Event fires after XMPP Stream is terminated.
|
static String |
TRUST_MANAGERS_KEY
Key for define property.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(EventType eventType,
Listener<? extends Connector.ConnectorEvent> listener)
Adds a listener bound by the given event type.
|
XmppSessionLogic |
createSessionLogic(XmppModulesManager modulesManager,
PacketWriter writer)
Returns instance of XmppSessionLogic to work with this
connector.
|
Observable |
getObservable()
Returns observable
|
Connector.State |
getState() |
boolean |
isCompressed() |
boolean |
isSecure() |
void |
keepalive()
Whitespace ping.
|
void |
removeAllListeners() |
void |
removeListener(EventType eventType,
Listener<Connector.ConnectorEvent> listener) |
void |
restartStream() |
void |
send(Element stanza) |
void |
setObservable(Observable observable) |
void |
start() |
void |
stop() |
void |
stop(boolean terminate) |
static final EventType BodyReceived
static final EventType Connected
static final String COMPRESSED_KEY
static final String CONNECTOR_STAGE_KEY
static final String DISABLE_KEEPALIVE_KEY
static final String ENCRYPTED_KEY
static final EventType EncryptionEstablished
static final EventType Error
Filled fields:
static final String EXTERNAL_KEEPALIVE_KEY
static final String SEE_OTHER_HOST_KEY
static final EventType StanzaReceived
Filled fields:
stanza : received stanzastatic final EventType StanzaSending
static final EventType StateChanged
static final EventType StreamTerminated
static final String TRUST_MANAGERS_KEY
TrustManagers[] instead
of dummy (accepts all certificates) builded in.void addListener(EventType eventType, Listener<? extends Connector.ConnectorEvent> listener)
eventType - type of eventlistener - the listenerXmppSessionLogic createSessionLogic(XmppModulesManager modulesManager, PacketWriter writer)
modulesManager - module managerwriter - writerObservable getObservable()
Connector.State getState()
boolean isCompressed()
boolean isSecure()
void keepalive()
throws JaxmppException
JaxmppExceptionvoid removeAllListeners()
void removeListener(EventType eventType, Listener<Connector.ConnectorEvent> listener)
void restartStream()
throws XMLException,
JaxmppException
XMLExceptionJaxmppExceptionvoid send(Element stanza) throws XMLException, JaxmppException
XMLExceptionJaxmppExceptionvoid setObservable(Observable observable)
void start()
throws XMLException,
JaxmppException
XMLExceptionJaxmppExceptionvoid stop()
throws XMLException,
JaxmppException
XMLExceptionJaxmppExceptionvoid stop(boolean terminate)
throws XMLException,
JaxmppException
XMLExceptionJaxmppExceptionCopyright © 2006–2014 Tigase. All rights reserved.