FileDocCategorySizeDatePackage
HandshakeCompletedListenerImpl.javaAPI DocGlassfish v2 API3580Fri May 04 22:30:32 BST 2007com.sun.appserv.management.client

HandshakeCompletedListenerImpl

public class HandshakeCompletedListenerImpl extends Object implements HandshakeCompletedListener
A default HandshakeCompletedListener which remembers the last HandshakeCompletedEvent that occured. Also supports wrapping another HandshakeCompletedListener.

Fields Summary
private HandshakeCompletedListener
mListener
private HandshakeCompletedEvent
mEvent
Constructors Summary
public HandshakeCompletedListenerImpl()

		this( null );
	
public HandshakeCompletedListenerImpl(HandshakeCompletedListener listener)
Create a new instance which chains to the specified HandshakeCompletedListener when handshakeCompleted() is called.

param
listener

		mListener	= listener;
		mEvent		= null;
	
Methods Summary
public synchronized javax.net.ssl.HandshakeCompletedEventgetLastEvent()
Get the last HandshakeCompletedEvent which occurred, possibly null.

		return( mEvent );
	
public synchronized voidhandshakeCompleted(javax.net.ssl.HandshakeCompletedEvent event)
Remember the HandshakeCompletedEvent, then call the chained listener (if any) with the same event.

param
event

		//trace( "handshakeCompleted: " + this + ":\n" +
			//HandshakeCompletedEventStringifier.stringify( event ) );
		mEvent	= event;
		
		if ( mListener != null )
		{
			mListener.handshakeCompleted( event );
		}