com.realtime.xmpp
Interface XmppSessionListener

All Known Implementing Classes:
DomAcceptComponent.AuthenticationManager, SessionEventLogger, TestComponent.TestListener, XmppSessionRestarter

public interface XmppSessionListener

An interface that accepts XMPP session lifecycle events such as stream opening, closing, errors, etc.

Version:
1.0 Copyright © 2002 Real Time Entertainment Group, LLC - All rights reserved.
Author:
Mike Prince

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

OPENING_SOCKET

public static final XmppSessionListener.Type OPENING_SOCKET
Signal we are about to try to open the TCP connection to the server.


SOCKET_OPEN

public static final XmppSessionListener.Type SOCKET_OPEN
Signal we successfully opened the socket.


STARTING_SESSION

public static final 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.


SESSION_STARTED

public static final XmppSessionListener.Type SESSION_STARTED
Signal the session has been started. This means that the <stream:stream> packet was sent, and a response was received.


SESSION_AUTHENTICATED

public static final XmppSessionListener.Type SESSION_AUTHENTICATED
Signal the session has been authenticated by the Jabber server.


AUTHENTICATION_FAILED

public static final XmppSessionListener.Type AUTHENTICATION_FAILED
Signal the session failed authenticated by the Jabber server.


SESSION_ENDED

public static final XmppSessionListener.Type SESSION_ENDED
Signal the session has been ended by the remote end sending a </stream:stream> packet.


CLOSING_SOCKET

public static final XmppSessionListener.Type CLOSING_SOCKET
Signal we are about to close the socket.


SOCKET_CLOSED

public static final XmppSessionListener.Type SOCKET_CLOSED
Signal the session and socket has closed.


PROTOCOL_ERROR

public static final XmppSessionListener.Type PROTOCOL_ERROR
Signal that there was a problem interpreting the XML input stream. After this event the connection will be closed.


CONNECTION_ERROR

public static final XmppSessionListener.Type CONNECTION_ERROR
Signal that there was a socket level error of the XMPP input stream. After this event the connection will be closed.


PARSER_SELECTED

public static final XmppSessionListener.Type PARSER_SELECTED
Signal the XML/XMPP parser that was selected.


WAITING

public static final XmppSessionListener.Type WAITING
Signal that a connection worker is waiting for something. Look for details in the event.


RESTARTING_CONNECTION

public static final XmppSessionListener.Type RESTARTING_CONNECTION
Signal that we are attempting to restart a failed connection.


SENDING_PACKET

public static final XmppSessionListener.Type SENDING_PACKET
Signal that we are sending a packet.


CANT_CONNECT

public static final XmppSessionListener.Type CANT_CONNECT
Signal that we were unable to connect.


STOPPING_COMPONENT

public static final XmppSessionListener.Type STOPPING_COMPONENT
Signal we are stopping a component.


INCOMING_PACKET

public static final XmppSessionListener.Type INCOMING_PACKET
Signal an incoming packet.

Method Detail

xmppSessionEvent

public void xmppSessionEvent(XmppSessionListener.Event event)

Signal an XML session event.

Parameters:
event - The XMPP session event, as defined in this class.


Copyright © 2002,2003 Real Time Entertainment Group, LLC. All Rights Reserved.