Class StandaloneLdapApiService

  • All Implemented Interfaces:
    LdapApiService

    public class StandaloneLdapApiService
    extends DefaultLdapCodecService
    The default LdapApiService implementation. It loads the Controls, ExtendedOperations and IntermediateResponses as defined in the following system parameters :
    • Controls :
      • apacheds.request.controls
      • apacheds.response.controls
      • default.controls
    • ExtendedOperations :
      • apacheds.extendedOperations
      • extra.extendedOperations
    • IntermediateResponses :
      • apacheds.intermediateResponses
    Version:
    $Rev$, $Date$
    Author:
    Apache Directory Project
    • Constructor Detail

      • StandaloneLdapApiService

        public StandaloneLdapApiService()
                                 throws Exception
        Creates a new instance of StandaloneLdapCodecService.

        The following pom configuration is intended for use by unit test running tools like Maven's surefire:
           <properties>
             <codec.plugin.directory>${project.build.directory}/pluginDirectory</codec.plugin.directory>
           </properties>
        
           <build>
             <plugins>
               <plugin>
                 <artifactId>maven-surefire-plugin</artifactId>
                 <groupId>org.apache.maven.plugins</groupId>
                 <configuration>
                   <systemPropertyVariables>
                     <workingDirectory>${basedir}/target</workingDirectory>
                     <felix.cache.rootdir>
                       ${project.build.directory}
                     </felix.cache.rootdir>
                     <felix.cache.locking>
                       true
                     </felix.cache.locking>
                     <org.osgi.framework.storage.clean>
                       onFirstInit
                     </org.osgi.framework.storage.clean>
                     <org.osgi.framework.storage>
                       osgi-cache
                     </org.osgi.framework.storage>
                     <codec.plugin.directory>
                       ${codec.plugin.directory}
                     </codec.plugin.directory>
                   </systemPropertyVariables>
                 </configuration>
               </plugin>
        
               <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-dependency-plugin</artifactId>
                 <executions>
                   <execution>
                     <id>copy</id>
                     <phase>compile</phase>
                     <goals>
                       <goal>copy</goal>
                     </goals>
                     <configuration>
                       <artifactItems>
                         <artifactItem>
                           <groupId>${project.groupId}</groupId>
                           <artifactId>api-ldap-extras-codec</artifactId>
                           <version>${project.version}</version>
                           <outputDirectory>${codec.plugin.directory}</outputDirectory>
                         </artifactItem>
                       </artifactItems>
                     </configuration>
                   </execution>
                 </executions>
               </plugin>
             </plugins>
           </build>
         
        Throws:
        Exception - If we had an issue initializing the LDAP service
      • StandaloneLdapApiService

        public StandaloneLdapApiService​(List<String> requestControls,
                                        List<String> responseControls,
                                        List<String> extendedOperations,
                                        List<String> intermediateResponses)
                                 throws Exception
        Creates a new instance of StandaloneLdapApiService.
        Parameters:
        requestControls - The list of request controls to store
        responseControls - The list of response controls to store
        extendedOperations - The list of extended operations to store
        intermediateResponses - The list of intermediate responsess to store
        Throws:
        Exception - If we had an issue with one of the two lists