The Java Developers Almanac 1.4


Order this book from Amazon.

   
Home > List of Packages > javax.naming.ldap  [4 examples]

e498. Performing an LDAP ``Extended'' Operation

This example performs an extended operation on an LDAP context.
    try {
        LdapContext ctx = new InitialLdapContext(env, null);
    
        // Create "extended" operation to use
        ExtendedRequest req = new GetTimeRequest();
    
        // Perform the operation
        GetTimeResponse response = (GetTimeResponse) ctx.extendedOperation(req);
    } catch (NamingException e) {
    }

 Related Examples
e495. Setting LDAP Connection Request Controls
e496. Setting LDAP Context Request Controls
e497. Getting LDAP Response Controls


© 2002 Addison-Wesley.