|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface that accepts XMPP session lifecycle events such as stream opening, closing, errors, etc.
Nested Class Summary | |
static class |
XmppSessionListener.Event
Object to represent events. |
static class |
XmppSessionListener.Type
Class representing different event types. |
Field Summary | |
static XmppSessionListener.Type |
AUTHENTICATION_FAILED
Signal the session failed authenticated by the Jabber server. |
static XmppSessionListener.Type |
CANT_CONNECT
Signal that we were unable to connect. |
static XmppSessionListener.Type |
CLOSING_SOCKET
Signal we are about to close the socket. |
static XmppSessionListener.Type |
CONNECTION_ERROR
Signal that there was a socket level error of the XMPP input stream. |
static XmppSessionListener.Type |
INCOMING_PACKET
Signal an incoming packet. |
static XmppSessionListener.Type |
OPENING_SOCKET
Signal we are about to try to open the TCP connection to the server. |
static XmppSessionListener.Type |
PARSER_SELECTED
Signal the XML/XMPP parser that was selected. |
static XmppSessionListener.Type |
PROTOCOL_ERROR
Signal that there was a problem interpreting the XML input stream. |
static XmppSessionListener.Type |
RESTARTING_CONNECTION
Signal that we are attempting to restart a failed connection. |
static XmppSessionListener.Type |
SENDING_PACKET
Signal that we are sending a packet. |
static XmppSessionListener.Type |
SESSION_AUTHENTICATED
Signal the session has been authenticated by the Jabber server. |
static XmppSessionListener.Type |
SESSION_ENDED
Signal the session has been ended by the remote end sending a </stream:stream> packet. |
static XmppSessionListener.Type |
SESSION_STARTED
Signal the session has been started. |
static XmppSessionListener.Type |
SOCKET_CLOSED
Signal the session and socket has closed. |
static XmppSessionListener.Type |
SOCKET_OPEN
Signal we successfully opened the socket. |
static XmppSessionListener.Type |
STARTING_SESSION
Signal TCP connection has been successfully opened and we are starting the XMPP session by sending the opening <stream:stream> packet. |
static XmppSessionListener.Type |
STOPPING_COMPONENT
Signal we are stopping a component. |
static XmppSessionListener.Type |
WAITING
Signal that a connection worker is waiting for something. |
Method Summary | |
void |
xmppSessionEvent(XmppSessionListener.Event event)
Signal an XML session event. |
Field Detail |
public static final XmppSessionListener.Type OPENING_SOCKET
public static final XmppSessionListener.Type SOCKET_OPEN
public static final XmppSessionListener.Type STARTING_SESSION
public static final XmppSessionListener.Type SESSION_STARTED
public static final XmppSessionListener.Type SESSION_AUTHENTICATED
public static final XmppSessionListener.Type AUTHENTICATION_FAILED
public static final XmppSessionListener.Type SESSION_ENDED
public static final XmppSessionListener.Type CLOSING_SOCKET
public static final XmppSessionListener.Type SOCKET_CLOSED
public static final XmppSessionListener.Type PROTOCOL_ERROR
public static final XmppSessionListener.Type CONNECTION_ERROR
public static final XmppSessionListener.Type PARSER_SELECTED
public static final XmppSessionListener.Type WAITING
public static final XmppSessionListener.Type RESTARTING_CONNECTION
public static final XmppSessionListener.Type SENDING_PACKET
public static final XmppSessionListener.Type CANT_CONNECT
public static final XmppSessionListener.Type STOPPING_COMPONENT
public static final XmppSessionListener.Type INCOMING_PACKET
Method Detail |
public void xmppSessionEvent(XmppSessionListener.Event event)
Signal an XML session event.
event
- The XMPP session event, as defined in this class.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |