public class AdDirSyncDecorator extends ControlDecorator<AdDirSync> implements AdDirSync
value, valueLength| Constructor and Description |
|---|
AdDirSyncDecorator(LdapApiService codec)
Creates a new instance of AdDirSyncControlCodec.
|
AdDirSyncDecorator(LdapApiService codec,
AdDirSync control)
Creates a new instance of AdDirSyncDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the AdDirSync length.
|
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the AdDirSync control.
|
byte[] |
getCookie() |
AdDirSyncFlag |
getFlag() |
int |
getMaxReturnLength() |
int |
getParentFirst() |
byte[] |
getValue()
Get the control value
|
void |
setCookie(byte[] cookie) |
void |
setFlag(AdDirSyncFlag flag) |
void |
setMaxReturnLength(int maxReturnLength) |
void |
setParentFirst(int parentFirst) |
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOid, isCritical, setCriticalpublic AdDirSyncDecorator(LdapApiService codec)
public AdDirSyncDecorator(LdapApiService codec, AdDirSync control)
codec - The LDAP codeccontrol - The control to be decoratedpublic int getParentFirst()
getParentFirst in interface AdDirSyncpublic void setParentFirst(int parentFirst)
setParentFirst in interface AdDirSyncparentFirst - The parentFirst flag. A value of 1 will tell the server to return the parents first.public AdDirSyncFlag getFlag()
public void setFlag(AdDirSyncFlag flag)
public int getMaxReturnLength()
getMaxReturnLength in interface AdDirSyncpublic void setMaxReturnLength(int maxReturnLength)
setMaxReturnLength in interface AdDirSyncmaxReturnLength - The maximum length of attributes to be returnedpublic byte[] getCookie()
public void setCookie(byte[] cookie)
public int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<AdDirSync>computeLength in class ControlDecorator<AdDirSync>public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode in interface Asn1Objectencode in interface Decorator<AdDirSync>buffer - The encoded sinkEncoderException - If anything goes wrong while encoding.public byte[] getValue()
getValue in interface CodecControl<AdDirSync>getValue in class ControlDecorator<AdDirSync>public Asn1Object decode(byte[] controlBytes) throws DecoderException
decode in interface CodecControl<AdDirSync>controlBytes - the encoded control bytesDecoderException - if anything goes wrongCopyright © 2021. All rights reserved.