|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.directory.shared.ldap.codec.standalone.StandaloneLdapApiService
public class StandaloneLdapApiService
The default LdapApiService implementation.
| Field Summary | |
|---|---|
static String |
DEFAULT_CONTROLS_LIST
The list of default controls to load at startup |
static String |
DEFAULT_EXTENDED_OPERATION_REQUESTS_LIST
The list of default extended operation requests to load at startup |
static String |
DEFAULT_EXTENDED_OPERATION_RESPONSES_LIST
The list of default extended operation responses to load at startup |
static String |
EXTRA_CONTROLS_LIST
The list of extra controls to load at startup |
static String |
EXTRA_EXTENDED_OPERATION_LIST
The list of extra controls to load at startup |
| Fields inherited from interface org.apache.directory.shared.ldap.codec.api.LdapApiService |
|---|
DEFAULT_PROTOCOL_CODEC_FACTORY |
| Constructor Summary | |
|---|---|
StandaloneLdapApiService()
Creates a new instance of StandaloneLdapCodecService. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String DEFAULT_CONTROLS_LIST
public static String EXTRA_CONTROLS_LIST
public static String DEFAULT_EXTENDED_OPERATION_REQUESTS_LIST
public static String DEFAULT_EXTENDED_OPERATION_RESPONSES_LIST
public static String EXTRA_EXTENDED_OPERATION_LIST
| Constructor Detail |
|---|
public StandaloneLdapApiService()
throws Exception
#PLUGIN_DIRECTORY_PROPERTY. 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>shared-ldap-extras-codec</artifactId>
<version>${project.version}</version>
<outputDirectory>${codec.plugin.directory}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Exception| Method Detail |
|---|
public ControlFactory<?,?> registerControl(ControlFactory<?,?> factory)
registerControl in interface LdapApiServicepublic ControlFactory<?,?> unregisterControl(String oid)
unregisterControl in interface LdapApiServicepublic Iterator<String> registeredControls()
registeredControls in interface LdapApiServicepublic boolean isControlRegistered(String oid)
isControlRegistered in interface LdapApiServicepublic Iterator<String> registeredExtendedRequests()
registeredExtendedRequests in interface LdapApiServicepublic ExtendedRequestFactory<?,?> registerExtendedRequest(ExtendedRequestFactory<?,?> factory)
registerExtendedRequest in interface LdapApiServicepublic org.apache.mina.filter.codec.ProtocolCodecFactory getProtocolCodecFactory()
getProtocolCodecFactory in interface LdapApiServicepublic org.apache.mina.filter.codec.ProtocolCodecFactory registerProtocolCodecFactory(org.apache.mina.filter.codec.ProtocolCodecFactory protocolCodecFactory)
registerProtocolCodecFactory in interface LdapApiServicepublic CodecControl<? extends Control> newControl(String oid)
newControl in interface LdapApiServicepublic CodecControl<? extends Control> newControl(Control control)
newControl in interface LdapApiService
public Control toJndiControl(Control control)
throws EncoderException
toJndiControl in interface LdapApiServiceEncoderException
public Control fromJndiControl(Control control)
throws DecoderException
fromJndiControl in interface LdapApiServiceDecoderExceptionpublic Asn1Container newMessageContainer()
newMessageContainer in interface LdapApiServicepublic Iterator<String> registeredUnsolicitedResponses()
registeredUnsolicitedResponses in interface LdapApiServicepublic UnsolicitedResponseFactory<?> registerUnsolicitedResponse(UnsolicitedResponseFactory<?> factory)
registerUnsolicitedResponse in interface LdapApiService
public ExtendedResponse toJndi(ExtendedResponse modelResponse)
throws EncoderException
toJndi in interface LdapApiServiceEncoderException
public ExtendedResponse fromJndi(ExtendedResponse jndiResponse)
throws DecoderException
fromJndi in interface LdapApiServiceDecoderExceptionpublic ExtendedRequestFactory<?,?> unregisterExtendedRequest(String oid)
unregisterExtendedRequest in interface LdapApiServicepublic UnsolicitedResponseFactory<?> unregisterUnsolicitedResponse(String oid)
unregisterUnsolicitedResponse in interface LdapApiService
public ExtendedRequest<?> fromJndi(ExtendedRequest jndiRequest)
throws DecoderException
fromJndi in interface LdapApiServiceDecoderException
public ExtendedRequest toJndi(ExtendedRequest<?> modelRequest)
throws EncoderException
toJndi in interface LdapApiServiceEncoderException
public <E extends ExtendedResponse> E newExtendedResponse(ExtendedRequest<E> req,
byte[] serializedResponse)
throws DecoderException
newExtendedResponse in interface LdapApiServiceDecoderException
public ExtendedRequest<?> newExtendedRequest(String oid,
byte[] value)
newExtendedRequest in interface LdapApiServicepublic ExtendedRequestDecorator<?,?> decorate(ExtendedRequest<?> decoratedMessage)
decorate in interface LdapApiServicepublic ExtendedResponseDecorator<?> decorate(ExtendedResponse decoratedMessage)
decorate in interface LdapApiServicepublic boolean isExtendedOperationRegistered(String oid)
isExtendedOperationRegistered in interface LdapApiService
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||