javax.mail.event

Interface ConnectionListener

All Superinterfaces:
EventListener
Known Implementing Classes:
ConnectionAdapter, IMAPTest

public interface ConnectionListener
extends EventListener

This is the Listener interface for Connection events.
Version:
1.3
Author:
Chris Burdess

Method Summary

void
closed(ConnectionEvent e)
Invoked when a Store/Folder/Transport is closed.
void
disconnected(ConnectionEvent e)
Invoked when a Store is disconnected.
void
opened(ConnectionEvent e)
Invoked when a Store/Folder/Transport is opened.

Method Details

closed

public void closed(ConnectionEvent e)
Invoked when a Store/Folder/Transport is closed.

disconnected

public void disconnected(ConnectionEvent e)
Invoked when a Store is disconnected. Note that a folder cannot be disconnected, so a folder will not fire this event.

opened

public void opened(ConnectionEvent e)
Invoked when a Store/Folder/Transport is opened.

© Copyright 2003, 2004 The Free Software Foundation, All rights reserved