0N/A/*
3261N/A * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage javax.naming.ldap;
0N/A
0N/Aimport javax.naming.event.NamingListener;
0N/A
0N/A/**
0N/A * This interface is for handling <tt>UnsolicitedNotificationEvent</tt>.
0N/A * "Unsolicited notification" is defined in
2395N/A * <A HREF="http://www.ietf.org/rfc/rfc2251.txt">RFC 2251</A>.
0N/A * It allows the server to send unsolicited notifications to the client.
0N/A * A <tt>UnsolicitedNotificationListener</tt> must:
0N/A *<ol>
0N/A * <li>Implement this interface and its method
0N/A * <li>Implement <tt>NamingListener.namingExceptionThrown()</tt> so
0N/A * that it will be notified of exceptions thrown while attempting to
0N/A * collect unsolicited notification events.
0N/A * <li>Register with the context using one of the <tt>addNamingListener()</tt>
0N/A * methods from <tt>EventContext</tt> or <tt>EventDirContext</tt>.
0N/A * Only the <tt>NamingListener</tt> argument of these methods are applicable;
0N/A * the rest are ignored for a <tt>UnsolicitedNotificationListener</tt>.
0N/A * (These arguments might be applicable to the listener if it implements
0N/A * other listener interfaces).
0N/A *</ol>
0N/A *
0N/A * @author Rosanna Lee
0N/A * @author Scott Seligman
0N/A * @author Vincent Ryan
0N/A *
0N/A * @see UnsolicitedNotificationEvent
0N/A * @see UnsolicitedNotification
0N/A * @see javax.naming.event.EventContext#addNamingListener
0N/A * @see javax.naming.event.EventDirContext#addNamingListener
0N/A * @see javax.naming.event.EventContext#removeNamingListener
0N/A * @since 1.3
0N/A */
0N/Apublic interface UnsolicitedNotificationListener extends NamingListener {
0N/A
0N/A /**
0N/A * Called when an unsolicited notification has been received.
0N/A *
0N/A * @param evt The non-null UnsolicitedNotificationEvent
0N/A */
0N/A void notificationReceived(UnsolicitedNotificationEvent evt);
0N/A}