|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.codec.api.DefaultLdapCodecService
public class DefaultLdapCodecService
The default LdapCodecService implementation.
| Constructor Summary | |
|---|---|
DefaultLdapCodecService()
|
|
| Method Summary | |
|---|---|
Control |
fromJndiControl(Control control)
Creates a model control from the JNDI control. |
CodecControl<? extends Control> |
newControl(Control control)
Creates a new codec control decorator for the provided control. |
CodecControl<? extends Control> |
newControl(String oid)
Creates a new codec control decorator of the specified type. |
Asn1Container |
newMessageContainer()
|
org.apache.mina.filter.codec.ProtocolCodecFactory |
newProtocolCodecFactory(boolean client)
Creates a new LDAP ProtocolCodecFactory. |
void |
registerControl(ControlFactory<?,?> factory)
Registers an ControlFactory with this service. |
Iterator<String> |
registeredControls()
Returns an Iterator over the OID Strings of registered controls. |
Iterator<String> |
registeredExtendedRequests()
Returns an Iterator over the OID Strings of registered extended requests. |
Iterator<String> |
registeredExtendedResponses()
Returns an Iterator over the OID Strings of registered extended responses. |
void |
registerExtendedOp(ExtendedOpFactory<?,?> factory)
Registers an ExtendedOpFactory for generating extended request
response pairs. |
Control |
toJndiControl(Control control)
Creates a JNDI control from the ldap model's control. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultLdapCodecService()
| Method Detail |
|---|
public void registerControl(ControlFactory<?,?> factory)
ControlFactory with this service.
registerControl in interface LdapCodecServicefactory - The control factorypublic Iterator<String> registeredControls()
registeredControls in interface LdapCodecServicepublic Iterator<String> registeredExtendedRequests()
registeredExtendedRequests in interface LdapCodecServicepublic Iterator<String> registeredExtendedResponses()
registeredExtendedResponses in interface LdapCodecServicepublic void registerExtendedOp(ExtendedOpFactory<?,?> factory)
ExtendedOpFactory for generating extended request
response pairs.
registerExtendedOp in interface LdapCodecServicefactory - The extended operation factorypublic org.apache.mina.filter.codec.ProtocolCodecFactory newProtocolCodecFactory(boolean client)
ProtocolCodecFactory.
newProtocolCodecFactory in interface LdapCodecServiceclient - if true a factory designed for clients is returned,
otherwise one for servers is returned.
ProtocolCodecFactorypublic CodecControl<? extends Control> newControl(String oid)
newControl in interface LdapCodecServiceoid - The OID of the new control to create.
public CodecControl<? extends Control> newControl(Control control)
newControl in interface LdapCodecServicecontrol - The control the codec control is generated for.
public Control toJndiControl(Control control)
throws EncoderException
toJndiControl in interface LdapCodecServicecontrol - The model's control.
EncoderException - if there are problems encoding the modelControl.
public Control fromJndiControl(Control control)
throws DecoderException
fromJndiControl in interface LdapCodecServicecontrol - The JNDI control.
DecoderException - if there are problems decoding the value of the JNDI control.public Asn1Container newMessageContainer()
newMessageContainer in interface LdapCodecService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||