com.realtime.xmpp.util
Class SessionEventLogger

java.lang.Object
  |
  +--com.realtime.xmpp.util.SessionEventLogger
All Implemented Interfaces:
XmppSessionListener

public class SessionEventLogger
extends java.lang.Object
implements XmppSessionListener

Helper class that sends XMPP session events to a stream.

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

Nested Class Summary
 
Nested classes inherited from class com.realtime.xmpp.XmppSessionListener
XmppSessionListener.Event, XmppSessionListener.Type
 
Field Summary
protected  java.io.Writer m_out
          The stream to write information to.
 
Fields inherited from interface com.realtime.xmpp.XmppSessionListener
AUTHENTICATION_FAILED, CANT_CONNECT, CLOSING_SOCKET, CONNECTION_ERROR, INCOMING_PACKET, OPENING_SOCKET, PARSER_SELECTED, PROTOCOL_ERROR, RESTARTING_CONNECTION, SENDING_PACKET, SESSION_AUTHENTICATED, SESSION_ENDED, SESSION_STARTED, SOCKET_CLOSED, SOCKET_OPEN, STARTING_SESSION, STOPPING_COMPONENT, WAITING
 
Constructor Summary
SessionEventLogger(java.io.Writer out)
          Create a listener that will write event information to a stream.
 
Method Summary
 void xmppSessionEvent(XmppSessionListener.Event event)
          Signal an XML session event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_out

protected java.io.Writer m_out
The stream to write information to.

Constructor Detail

SessionEventLogger

public SessionEventLogger(java.io.Writer out)

Create a listener that will write event information to a stream.

* @param out The stream to write information to.

Method Detail

xmppSessionEvent

public void xmppSessionEvent(XmppSessionListener.Event event)

Signal an XML session event.

Specified by:
xmppSessionEvent in interface XmppSessionListener
Parameters:
event - The XMPP session event, as defined in this class.


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