public interface LdapApiService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_PROTOCOL_CODEC_FACTORY |
| Modifier and Type | Method and Description |
|---|---|
ExtendedRequestDecorator<?> |
decorate(ExtendedRequest decoratedMessage) |
ExtendedResponseDecorator<?> |
decorate(ExtendedResponse decoratedMessage) |
ExtendedRequest |
fromJndi(javax.naming.ldap.ExtendedRequest jndiRequest)
Creates a model ExtendedResponse from the JNDI ExtendedResponse.
|
ExtendedResponse |
fromJndi(javax.naming.ldap.ExtendedResponse jndiResponse)
Creates a model ExtendedResponse from the JNDI ExtendedResponse.
|
Control |
fromJndiControl(javax.naming.ldap.Control jndiControl)
Creates a model control from the JNDI control.
|
org.apache.mina.filter.codec.ProtocolCodecFactory |
getProtocolCodecFactory()
Creates a new LDAP
ProtocolCodecFactory. |
boolean |
isControlRegistered(java.lang.String oid)
Checks if a control has been registered.
|
boolean |
isExtendedOperationRegistered(java.lang.String oid)
Checks to see if an extended operation, either a standard request
response, pair or just an unsolicited response is registered.
|
CodecControl<? extends Control> |
newControl(Control control)
Creates a new codec control decorator for the provided control.
|
CodecControl<? extends Control> |
newControl(java.lang.String oid)
Creates a new codec control decorator of the specified type.
|
ExtendedRequest |
newExtendedRequest(java.lang.String oid,
byte[] value)
Creates a new ExtendedRequest instance.
|
<E extends ExtendedResponse> |
newExtendedResponse(java.lang.String responseName,
int messageId,
byte[] serializedResponse)
Create an instance of a ExtendedResponse, knowing its OID.
|
Asn1Container |
newMessageContainer()
Creates a new MessageContainer.
|
ControlFactory<?> |
registerControl(ControlFactory<?> factory)
Registers an
ControlFactory with this service. |
java.util.Iterator<java.lang.String> |
registeredControls()
Returns an Iterator over the OID Strings of registered controls.
|
java.util.Iterator<java.lang.String> |
registeredExtendedRequests()
Returns an Iterator over the OID Strings of registered extended
requests.
|
ExtendedOperationFactory |
registerExtendedRequest(ExtendedOperationFactory factory)
Registers an
ExtendedOperationFactory for generating extended request
response pairs. |
org.apache.mina.filter.codec.ProtocolCodecFactory |
registerProtocolCodecFactory(org.apache.mina.filter.codec.ProtocolCodecFactory factory)
Registers a ProtocolCodecFactory with this LdapCodecService.
|
javax.naming.ldap.ExtendedRequest |
toJndi(ExtendedRequest modelRequest)
Creates a JNDI
ExtendedResponse from the model
ExtendedResponse. |
javax.naming.ldap.ExtendedResponse |
toJndi(ExtendedResponse modelResponse)
Creates a JNDI
ExtendedResponse from the model
ExtendedResponse. |
javax.naming.ldap.Control |
toJndiControl(Control modelControl)
Creates a JNDI control from the ldap model's control.
|
ControlFactory<?> |
unregisterControl(java.lang.String oid)
Unregisters an
ControlFactory with this service. |
ExtendedOperationFactory |
unregisterExtendedRequest(java.lang.String oid)
Unregisters an
ExtendedOperationFactory for generating extended
request response pairs. |
static final java.lang.String DEFAULT_PROTOCOL_CODEC_FACTORY
java.util.Iterator<java.lang.String> registeredControls()
boolean isControlRegistered(java.lang.String oid)
ControlFactory<?> registerControl(ControlFactory<?> factory)
ControlFactory with this service.factory - The control factoryControlFactory<?> unregisterControl(java.lang.String oid)
ControlFactory with this service.oid - The oid of the control the factory is associated with.CodecControl<? extends Control> newControl(java.lang.String oid)
oid - The OID of the new control to create.CodecControl<? extends Control> newControl(Control control)
control - The control the codec control is generated for.javax.naming.ldap.Control toJndiControl(Control modelControl) throws EncoderException
modelControl - The model's control.EncoderException - if there are problems encoding the modelControl.Control fromJndiControl(javax.naming.ldap.Control jndiControl) throws DecoderException
jndiControl - The JNDI control.DecoderException - if there are problems decoding the value of the JNDI control.java.util.Iterator<java.lang.String> registeredExtendedRequests()
ExtendedOperationFactory registerExtendedRequest(ExtendedOperationFactory factory)
ExtendedOperationFactory for generating extended request
response pairs.factory - The extended request factoryExtendedOperationFactory unregisterExtendedRequest(java.lang.String oid)
ExtendedOperationFactory for generating extended
request response pairs.oid - The extended request oidboolean isExtendedOperationRegistered(java.lang.String oid)
oid - The object identifier for the extended operationExtendedResponse fromJndi(javax.naming.ldap.ExtendedResponse jndiResponse) throws DecoderException
jndiResponse - The JNDI ExtendedResponseDecoderException - if the response value cannot be decoded.javax.naming.ldap.ExtendedResponse toJndi(ExtendedResponse modelResponse) throws EncoderException
ExtendedResponse from the model
ExtendedResponse.modelResponse - EncoderExceptionExtendedRequest fromJndi(javax.naming.ldap.ExtendedRequest jndiRequest) throws DecoderException
jndiResponse - The JNDI ExtendedResponseDecoderException - if the response value cannot be decoded.javax.naming.ldap.ExtendedRequest toJndi(ExtendedRequest modelRequest) throws EncoderException
ExtendedResponse from the model
ExtendedResponse.modelResponse - EncoderExceptionorg.apache.mina.filter.codec.ProtocolCodecFactory getProtocolCodecFactory()
ProtocolCodecFactory.ProtocolCodecFactoryorg.apache.mina.filter.codec.ProtocolCodecFactory registerProtocolCodecFactory(org.apache.mina.filter.codec.ProtocolCodecFactory factory)
factory - The factory being registered.ProtocolCodecFactory, or null if
none had been set earlier.Asn1Container newMessageContainer()
<E extends ExtendedResponse> E newExtendedResponse(java.lang.String responseName, int messageId, byte[] serializedResponse) throws DecoderException
responseName - The extendedRespose OIDmessageId - The original message IDserializedResponse - The serialized response payloadDecoderException - If the payload is incorrectExtendedRequest newExtendedRequest(java.lang.String oid, byte[] value)
oid - the extended request's object identifiervalue - the encoded value of the extended requestExtendedRequestDecorator<?> decorate(ExtendedRequest decoratedMessage)
ExtendedResponseDecorator<?> decorate(ExtendedResponse decoratedMessage)