/** * Registers the specified {@link ExtendedOperationHandler} to this * protocol provider to provide a specific LDAP extended operation. * * @param eoh an extended operation handler * @throws Exception on failure to add the handler */ public void addExtendedOperationHandler( ExtendedOperationHandler<? extends ExtendedRequest, ? extends ExtendedResponse> eoh ) throws Exception { if ( started ) { eoh.setLdapServer( this ); PartitionNexus nexus = getDirectoryService().getPartitionNexus(); nexus.registerSupportedExtensions( eoh.getExtensionOids() ); } else { extendedOperationHandlers.add( eoh ); } }
nexus.registerSupportedExtensions( h.getExtensionOids() );