public class StandaloneLdapApiService extends DefaultLdapCodecService
LdapApiService
implementation.
It loads the Controls, ExtendedOperations and IntermediateResponses as defined in the following system parameters :
Modifier and Type | Class and Description |
---|---|
static class |
StandaloneLdapApiService.ControlType
The control's type
|
Modifier and Type | Field and Description |
---|---|
static String |
EXTENDED_OPERATIONS_LIST
The list of extended operations to load at startup
|
static String |
INTERMEDIATE_RESPONSES_LIST
The list of Intermediate responses to load at startup
|
static String |
REQUEST_CONTROLS_LIST
The list of request controls to load at startup
|
static String |
RESPONSE_CONTROLS_LIST
The list of response controls to load at startup
|
DEFAULT_PROTOCOL_CODEC_FACTORY
Constructor and Description |
---|
StandaloneLdapApiService()
Creates a new instance of StandaloneLdapCodecService.
|
StandaloneLdapApiService(List<String> requestControls,
List<String> responseControls,
List<String> extendedOperations,
List<String> intermediateResponses)
Creates a new instance of StandaloneLdapApiService.
|
fromJndi, fromJndi, fromJndiRequestControl, fromJndiResponseControl, getExtendedRequestFactories, getExtendedResponseFactories, getIntermediateResponseFactories, getProtocolCodecFactory, getRequestControlFactories, getResponseControlFactories, isControlRegistered, isExtendedRequestRegistered, isExtendedResponseRegistered, isIntermediateResponseRegistered, registeredExtendedRequests, registeredExtendedResponses, registeredIntermediateResponses, registeredRequestControls, registeredResponseControls, registerExtendedRequest, registerExtendedResponse, registerIntermediateResponse, registerProtocolCodecFactory, registerRequestControl, registerResponseControl, setExtendedRequestFactories, setExtendedResponseFactories, setIntermediateResponseFactories, setProtocolCodecFactory, setRequestControlFactories, setResponseControlFactories, toJndi, toJndi, toJndiControl, toString, unregisterExtendedRequest, unregisterExtendedResponse, unregisterIntermediateResponse, unregisterRequestControl, unregisterResponseControl
public static final String REQUEST_CONTROLS_LIST
public static final String RESPONSE_CONTROLS_LIST
public static final String EXTENDED_OPERATIONS_LIST
public static final String INTERMEDIATE_RESPONSES_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> requestControls, List<String> responseControls, List<String> extendedOperations, List<String> intermediateResponses) throws Exception
requestControls
- The list of request controls to storeresponseControls
- The list of response controls to storeextendedOperations
- The list of extended operations to storeintermediateResponses
- The list of intermediate responsess to storeException
- If we had an issue with one of the two listsCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.