1. /*
  2. * @(#)UnsolicitedNotification.java 1.8 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.naming.ldap;
  8. import javax.naming.NamingException;
  9. /**
  10. * This interface represents an unsolicited notification as defined in
  11. * <A HREF="ftp://ftp.isi.edu/in-notes/rfc2251.txt">RFC 2251</A>.
  12. * An unsolicited notification is sent by the LDAP server to the LDAP
  13. * client without any provocation from the client.
  14. * Its format is that of an extended response (<tt>ExtendedResponse</tt>).
  15. *
  16. * @author Rosanna Lee
  17. * @author Scott Seligman
  18. * @author Vincent Ryan
  19. * @version 1.8 03/12/19
  20. *
  21. * @see ExtendedResponse
  22. * @see UnsolicitedNotificationEvent
  23. * @see UnsolicitedNotificationListener
  24. * @since 1.3
  25. */
  26. public interface UnsolicitedNotification extends ExtendedResponse, HasControls {
  27. /**
  28. * Retrieves the referral(s) sent by the server.
  29. *
  30. * @return A possibly null array of referrals, each of which is represented
  31. * by a URL string. If null, no referral was sent by the server.
  32. */
  33. public String[] getReferrals();
  34. /**
  35. * Retrieves the exception as constructed using information
  36. * sent by the server.
  37. * @return A possibly null exception as constructed using information
  38. * sent by the server. If null, a "success" status was indicated by
  39. * the server.
  40. */
  41. public NamingException getException();
  42. }