public class StandaloneLdapApiService extends DefaultLdapCodecService
LdapApiService implementation.
It loads the Controls and ExtendedOperations as defined in the following system parameters :
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTROLS_LIST
The list of controls to load at startup
|
static java.lang.String |
EXTENDED_OPERATIONS_LIST
The list of extended operations to load at startup
|
private static org.slf4j.Logger |
LOG
A logger
|
private static java.lang.String |
OLD_DEFAULT_CONTROLS_LIST
The (old) list of default controls to load at startup
|
private static java.lang.String |
OLD_EXTRA_EXTENDED_OPERATION_LIST
The (old) list of extra extended operations to load at startup
|
DEFAULT_PROTOCOL_CODEC_FACTORY| Constructor and Description |
|---|
StandaloneLdapApiService()
Creates a new instance of StandaloneLdapCodecService.
|
StandaloneLdapApiService(java.util.List<java.lang.String> controls,
java.util.List<java.lang.String> extendedOperations) |
| Modifier and Type | Method and Description |
|---|---|
private static java.util.List<java.lang.String> |
getControlsFromSystemProperties()
Parses the system properties to obtain the controls list.
|
private static java.util.List<java.lang.String> |
getExtendedOperationsFromSystemProperties()
Parses the system properties to obtain the extended operations.
|
private void |
loadControl(java.lang.String controlFQCN)
Loads a control from its FQCN.
|
private void |
loadControls(java.util.List<java.lang.String> controlsList)
Loads a list of controls from their FQCN.
|
private void |
loadExtendedOperation(java.lang.String extendedOperationFQCN)
Loads an of extended operations from its FQCN
|
private void |
loadExtendedOperations(java.util.List<java.lang.String> extendedOperationsList)
Loads a list of extended operation from their FQCN
|
decorate, decorate, fromJndi, fromJndi, fromJndiControl, getControlFactories, getExtendedOperationsFactories, getProtocolCodecFactory, isControlRegistered, isExtendedOperationRegistered, newControl, newControl, newExtendedRequest, newExtendedResponse, newMessageContainer, registerControl, registeredControls, registeredExtendedRequests, registerExtendedRequest, registerProtocolCodecFactory, setControlFactories, setExtendedOperationsFactories, setProtocolCodecFactory, toJndi, toJndi, toJndiControl, unregisterControl, unregisterExtendedRequestprivate static final org.slf4j.Logger LOG
public static final java.lang.String CONTROLS_LIST
public static final java.lang.String EXTENDED_OPERATIONS_LIST
private static final java.lang.String OLD_DEFAULT_CONTROLS_LIST
private static final java.lang.String OLD_EXTRA_EXTENDED_OPERATION_LIST
public StandaloneLdapApiService()
throws java.lang.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>
java.lang.Exceptionpublic StandaloneLdapApiService(java.util.List<java.lang.String> controls,
java.util.List<java.lang.String> extendedOperations)
throws java.lang.Exception
java.lang.Exceptionprivate static java.util.List<java.lang.String> getControlsFromSystemProperties()
throws java.lang.Exception
java.lang.Exceptionprivate static java.util.List<java.lang.String> getExtendedOperationsFromSystemProperties()
throws java.lang.Exception
java.lang.Exceptionprivate void loadControls(java.util.List<java.lang.String> controlsList)
throws java.lang.Exception
java.lang.Exceptionprivate void loadControl(java.lang.String controlFQCN)
throws java.lang.Exception
java.lang.Exceptionprivate void loadExtendedOperations(java.util.List<java.lang.String> extendedOperationsList)
throws java.lang.Exception
java.lang.Exceptionprivate void loadExtendedOperation(java.lang.String extendedOperationFQCN)
throws java.lang.Exception
java.lang.Exception