IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.clientserver
Class ChannelSessionHandler

java.lang.Object
  extended by com.ibm.btt.clientserver.ChannelSessionHandler
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class ChannelSessionHandler
extends java.lang.Object
implements java.io.Externalizable

The ChannelSessionHandler class

The purpose of this utility class is to provide a single handler to be notified by the channel driver when the session state has been changed. The handler is responsible to publish the event that the application should listen to perform any session house keeping within the application

See Also:
Serialized Form

Field Summary
protected  java.util.Vector aChannelSessionStateChangedListener
          The current channel session state changed listeners *
 
Constructor Summary
ChannelSessionHandler()
           
 
Method Summary
 void addChannelSessionStateChangedListener(ChannelSessionStateChangedListener newListener)
          Add a ChannelSessionStateChangedListener object to listen for events
protected  void fireSessionAdded(ChannelSessionStateChangedEvent anEvent)
          Fire the ChannelSessionStateChangedEvent event to all ChannelSessionStateChangedListener objects
protected  void fireSessionRemoved(ChannelSessionStateChangedEvent anEvent)
          Fire the ChannelSessionStateChangedEvent event to all ChannelSessionStateChangedListener objects
 void readExternal(java.io.ObjectInput in)
          Invokes the object creation from an ObjectInput.
 void removeChannelSessionStateChangedListener(ChannelSessionStateChangedListener newListener)
          remove a ChannelSessionStateChangedListener object to listen for events
 void writeExternal(java.io.ObjectOutput s)
          Provides concrete serialization handling for ChannelSessionHandler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

aChannelSessionStateChangedListener

protected transient java.util.Vector aChannelSessionStateChangedListener
The current channel session state changed listeners *

Constructor Detail

ChannelSessionHandler

public ChannelSessionHandler()
Method Detail

addChannelSessionStateChangedListener

public void addChannelSessionStateChangedListener(ChannelSessionStateChangedListener newListener)
Add a ChannelSessionStateChangedListener object to listen for events

Parameters:
newListener - com.ibm.btt.clientserver.ChannelSessionStateChangedListener

fireSessionAdded

protected void fireSessionAdded(ChannelSessionStateChangedEvent anEvent)
Fire the ChannelSessionStateChangedEvent event to all ChannelSessionStateChangedListener objects

Parameters:
anEvent - com.ibm.btt.clientserver.ChannelSessionStateChangedEvent

fireSessionRemoved

protected void fireSessionRemoved(ChannelSessionStateChangedEvent anEvent)
Fire the ChannelSessionStateChangedEvent event to all ChannelSessionStateChangedListener objects

Parameters:
anEvent - com.ibm.btt.clientserver.ChannelSessionStateChangedEvent

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Invokes the object creation from an ObjectInput. In the ObjectInput will arrive a ChannelSessionHandler and all the registered listeners of ChannelSessionStateChangedEvent.

Specified by:
readExternal in interface java.io.Externalizable
Parameters:
in - java.io.ObjectInput
Throws:
IOException.
ClassNotFoundException.
java.io.IOException
java.lang.ClassNotFoundException

removeChannelSessionStateChangedListener

public void removeChannelSessionStateChangedListener(ChannelSessionStateChangedListener newListener)
remove a ChannelSessionStateChangedListener object to listen for events

Parameters:
newListener - com.ibm.btt.clientserver.ChannelSessionStateChangedListener

writeExternal

public void writeExternal(java.io.ObjectOutput s)
                   throws java.io.IOException
Provides concrete serialization handling for ChannelSessionHandler. Will be serialized the registered listeners of ChannelSessionStateChangedEvent.

Specified by:
writeExternal in interface java.io.Externalizable
Parameters:
s - java.io.ObjectOutput
Throws:
java.io.IOException

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010