IT. Expert System.

Java Standard Edition (SE)

HasControls


compact3
javax.naming.ldap

Interface HasControls

  • All Known Subinterfaces:
    UnsolicitedNotification


    public interface HasControls
    This interface is for returning controls with objects returned in NamingEnumerations. For example, suppose a server sends back controls with the results of a search operation, the service provider would return a NamingEnumeration of objects that are both SearchResult and implement HasControls.
       NamingEnumeration elts = ectx.search((Name)name, filter, sctls);
       while (elts.hasMore()) {
         Object entry = elts.next();
    
         // Get search result
         SearchResult res = (SearchResult)entry;
         // do something with it
    
         // Get entry controls
         if (entry instanceof HasControls) {
             Control[] entryCtls = ((HasControls)entry).getControls();
             // do something with controls
         }
       }
    
    Since:
    1.3
    • Method Detail

      • getControls

        Control[] getControls()
                       throws NamingException
        Retrieves an array of Controls from the object that implements this interface. It is null if there are no controls.
        Returns:
        A possibly null array of Control objects.
        Throws:
        NamingException - If cannot return controls due to an error.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 461 / 158856375. Delta: 0.05164 с