< prev index next >

src/java.naming/share/classes/javax/naming/ldap/HasControls.java

Print this page




  43   *     // do something with it
  44   *
  45   *     // Get entry controls
  46   *     if (entry instanceof HasControls) {
  47   *         Control[] entryCtls = ((HasControls)entry).getControls();
  48   *         // do something with controls
  49   *     }
  50   *   }
  51   *</pre></blockquote>
  52   *
  53   * @author Rosanna Lee
  54   * @author Scott Seligman
  55   * @author Vincent Ryan
  56   * @since 1.3
  57   *
  58   */
  59 
  60 public interface HasControls {
  61 
  62     /**
  63       * Retrieves an array of <tt>Control</tt>s from the object that
  64       * implements this interface. It is null if there are no controls.
  65       *
  66       * @return A possibly null array of <tt>Control</tt> objects.
  67       * @throws NamingException If cannot return controls due to an error.
  68       */
  69     public Control[] getControls() throws NamingException;
  70 }


  43   *     // do something with it
  44   *
  45   *     // Get entry controls
  46   *     if (entry instanceof HasControls) {
  47   *         Control[] entryCtls = ((HasControls)entry).getControls();
  48   *         // do something with controls
  49   *     }
  50   *   }
  51   *</pre></blockquote>
  52   *
  53   * @author Rosanna Lee
  54   * @author Scott Seligman
  55   * @author Vincent Ryan
  56   * @since 1.3
  57   *
  58   */
  59 
  60 public interface HasControls {
  61 
  62     /**
  63       * Retrieves an array of {@code Control}s from the object that
  64       * implements this interface. It is null if there are no controls.
  65       *
  66       * @return A possibly null array of {@code Control} objects.
  67       * @throws NamingException If cannot return controls due to an error.
  68       */
  69     public Control[] getControls() throws NamingException;
  70 }
< prev index next >