|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Connector
Main Connector interface.
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.
| Nested Class Summary | |
|---|---|
static class |
Connector.ConnectorEvent
Event generated by Connector. |
static class |
Connector.State
|
| Field Summary | |
|---|---|
static EventType |
BodyReceived
|
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. |
| Method Summary | |
|---|---|
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 |
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)
|
| Field Detail |
|---|
static final EventType BodyReceived
static final EventType Connected
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 stanza
static 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.
| Method Detail |
|---|
void addListener(EventType eventType,
Listener<? extends Connector.ConnectorEvent> listener)
eventType - type of eventlistener - the listener
XmppSessionLogic createSessionLogic(XmppModulesManager modulesManager,
PacketWriter writer)
modulesManager - module managerwriter - writer
Observable getObservable()
Connector.State getState()
boolean isSecure()
void keepalive()
throws JaxmppException
JaxmppExceptionvoid removeAllListeners()
void removeListener(EventType eventType,
Listener<Connector.ConnectorEvent> listener)
void restartStream()
throws XMLException,
JaxmppException
XMLException
JaxmppException
void send(Element stanza)
throws XMLException,
JaxmppException
XMLException
JaxmppExceptionvoid setObservable(Observable observable)
void start()
throws XMLException,
JaxmppException
XMLException
JaxmppException
void stop()
throws XMLException,
JaxmppException
XMLException
JaxmppException
void stop(boolean terminate)
throws XMLException,
JaxmppException
XMLException
JaxmppException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||