public class StandaloneLdapApiService
extends org.apache.directory.api.ldap.codec.osgi.DefaultLdapCodecService
LdapApiService implementation.
It loads the Controls and ExtendedOperations as defined in the following system parameters :
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTROLS_LIST
The list of controls to load at startup
|
static String |
EXTENDED_OPERATIONS_LIST
The list of extended operations to load at startup
|
| Constructor and Description |
|---|
StandaloneLdapApiService()
Creates a new instance of StandaloneLdapCodecService.
|
StandaloneLdapApiService(List<String> controls,
List<String> extendedOperations) |
decorate, decorate, fromJndi, fromJndi, fromJndiControl, getProtocolCodecFactory, isControlRegistered, isExtendedOperationRegistered, newControl, newControl, newExtendedRequest, newExtendedResponse, newMessageContainer, registerControl, registeredControls, registeredExtendedRequests, registerExtendedRequest, registerProtocolCodecFactory, toJndi, toJndi, toJndiControl, unregisterControl, unregisterExtendedRequestpublic static final String CONTROLS_LIST
public static final String EXTENDED_OPERATIONS_LIST
public StandaloneLdapApiService()
throws Exception
#PLUGIN_DIRECTORY_PROPERTY.
<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>
ExceptionCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.