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 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
|
DEFAULT_PROTOCOL_CODEC_FACTORY
Constructor and Description |
---|
StandaloneLdapApiService()
Creates a new instance of StandaloneLdapCodecService.
|
StandaloneLdapApiService(List<String> controls,
List<String> extendedOperations)
Creates a new instance of StandaloneLdapApiService.
|
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, unregisterExtendedRequest
public static final String CONTROLS_LIST
public static final String EXTENDED_OPERATIONS_LIST
public StandaloneLdapApiService() throws Exception
<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>
Exception
- If we had an issue initializing the LDAP servicepublic StandaloneLdapApiService(List<String> controls, List<String> extendedOperations) throws Exception
controls
- The list of controls to storeextendedOperations
- The list of extended operations to storeException
- If we had an issue with one of the two listsCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.