Class AdDirSyncRequestFactory
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.api.AbstractControlFactory<AdDirSyncRequest>
-
- org.apache.directory.api.ldap.extras.controls.ad_impl.AdDirSyncRequestFactory
-
- All Implemented Interfaces:
ControlFactory<AdDirSyncRequest>
public class AdDirSyncRequestFactory extends AbstractControlFactory<AdDirSyncRequest>
AControlFactory
which createsAdDirSyncRequest
controls.- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description AdDirSyncRequestFactory(LdapApiService codec)
Creates a new instance of AdDirSyncRequestFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decodeValue(Control control, byte[] controlBytes)
Decode a Control's value.void
encodeValue(Asn1Buffer buffer, Control control)
Encode the value part of the control.AdDirSyncRequest
newControl()
Creates and returns a version of the Control.-
Methods inherited from class org.apache.directory.api.ldap.codec.api.AbstractControlFactory
decodeValue, getOid
-
-
-
-
Constructor Detail
-
AdDirSyncRequestFactory
public AdDirSyncRequestFactory(LdapApiService codec)
Creates a new instance of AdDirSyncRequestFactory.- Parameters:
codec
- The codec for this factory.
-
-
Method Detail
-
newControl
public AdDirSyncRequest newControl()
Creates and returns a version of the Control.- Returns:
- The
CodecControl
decorated version of the Control.
-
encodeValue
public void encodeValue(Asn1Buffer buffer, Control control)
Encode the value part of the control.- Specified by:
encodeValue
in interfaceControlFactory<AdDirSyncRequest>
- Overrides:
encodeValue
in classAbstractControlFactory<AdDirSyncRequest>
- Parameters:
buffer
- The buffer into which to put the encoded valuecontrol
- The control to encode
-
decodeValue
public void decodeValue(Control control, byte[] controlBytes) throws DecoderException
Decode a Control's value. It will feed the Control.- Specified by:
decodeValue
in interfaceControlFactory<AdDirSyncRequest>
- Overrides:
decodeValue
in classAbstractControlFactory<AdDirSyncRequest>
- Parameters:
control
- The control to feedcontrolBytes
- The data to decode- Throws:
DecoderException
- If the value can't be decoded
-
-