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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getOid, isCritical, setCritical
public AdDirSyncDecorator(LdapApiService codec)
public AdDirSyncDecorator(LdapApiService codec, AdDirSync control)
codec
- The LDAP codeccontrol
- The control to be decoratedpublic int getParentFirst()
getParentFirst
in interface AdDirSync
public void setParentFirst(int parentFirst)
setParentFirst
in interface AdDirSync
parentFirst
- 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 AdDirSync
public void setMaxReturnLength(int maxReturnLength)
setMaxReturnLength
in interface AdDirSync
maxReturnLength
- The maximum length of attributes to be returnedpublic byte[] getCookie()
public void setCookie(byte[] cookie)
public int computeLength()
computeLength
in interface Asn1Object
computeLength
in interface Decorator<AdDirSync>
computeLength
in class ControlDecorator<AdDirSync>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
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 © 2003–2014 The Apache Software Foundation. All rights reserved.