Class EntryChangeFactory
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.api.AbstractControlFactory<EntryChange>
-
- org.apache.directory.api.ldap.codec.controls.search.entryChange.EntryChangeFactory
-
- All Implemented Interfaces:
ControlFactory<EntryChange>
public class EntryChangeFactory extends AbstractControlFactory<EntryChange>
AControlFactoryforEntryChangecontrols.- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
-
-
Field Summary
Fields Modifier and Type Field Description static intUNDEFINED_CHANGE_NUMBERDefault value when no change number is provided-
Fields inherited from class org.apache.directory.api.ldap.codec.api.AbstractControlFactory
codec, oid
-
-
Constructor Summary
Constructors Constructor Description EntryChangeFactory(LdapApiService codec)Creates a new instance of EntryChangeFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecodeValue(Control control, byte[] controlBytes)Decode a Control's value.voidencodeValue(Asn1Buffer buffer, Control control)Encode the value part of the control.EntryChangenewControl()Creates and returns a version of the Control.-
Methods inherited from class org.apache.directory.api.ldap.codec.api.AbstractControlFactory
decodeValue, getOid
-
-
-
-
Field Detail
-
UNDEFINED_CHANGE_NUMBER
public static final int UNDEFINED_CHANGE_NUMBER
Default value when no change number is provided- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EntryChangeFactory
public EntryChangeFactory(LdapApiService codec)
Creates a new instance of EntryChangeFactory.- Parameters:
codec- The LDAP codec.
-
-
Method Detail
-
newControl
public EntryChange newControl()
Creates and returns a version of the Control.- Returns:
- The
CodecControldecorated version of the Control.
-
encodeValue
public void encodeValue(Asn1Buffer buffer, Control control)
Encode the value part of the control.- Specified by:
encodeValuein interfaceControlFactory<EntryChange>- Overrides:
encodeValuein classAbstractControlFactory<EntryChange>- 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:
decodeValuein interfaceControlFactory<EntryChange>- Overrides:
decodeValuein classAbstractControlFactory<EntryChange>- Parameters:
control- The control to feedcontrolBytes- The data to decode- Throws:
DecoderException- If the value can't be decoded
-
-