public class SyncRequestValueDecorator extends ControlDecorator<SyncRequestValue> implements SyncRequestValue
OID
Constructor and Description |
---|
SyncRequestValueDecorator(LdapApiService codec)
Create a new SyncRequestValueDecorator instance
|
SyncRequestValueDecorator(LdapApiService codec,
SyncRequestValue control)
Create a new SyncRequestValueDecorator instance
|
Modifier and Type | Method and Description |
---|---|
int |
computeLength()
Compute the SyncRequestValue length.
|
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the SyncRequestValue control
|
byte[] |
getCookie() |
SynchronizationModeEnum |
getMode() |
byte[] |
getValue()
Get the control value
|
boolean |
isReloadHint() |
void |
setCookie(byte[] cookie) |
void |
setMode(SynchronizationModeEnum mode) |
void |
setReloadHint(boolean reloadHint) |
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toString
getOid, isCritical, setCritical
public SyncRequestValueDecorator(LdapApiService codec)
codec
- The LDAP API service to usepublic SyncRequestValueDecorator(LdapApiService codec, SyncRequestValue control)
codec
- The LDAP API service to usecontrol
- The decorated SyncRequestValue controlpublic SynchronizationModeEnum getMode()
getMode
in interface SyncRequestValue
public void setMode(SynchronizationModeEnum mode)
setMode
in interface SyncRequestValue
mode
- the syncMode to setpublic byte[] getCookie()
getCookie
in interface SyncRequestValue
public void setCookie(byte[] cookie)
setCookie
in interface SyncRequestValue
cookie
- the cookie to setpublic boolean isReloadHint()
isReloadHint
in interface SyncRequestValue
public void setReloadHint(boolean reloadHint)
setReloadHint
in interface SyncRequestValue
reloadHint
- the reloadHint to setpublic int computeLength()
0x30 L1 | +--> 0x0A 0x01 [0x00|0x01|0x02|0x03] (mode) [+--> 0x04 L2 abcd... (cookie) +--> 0x01 0x01 [0x00|0xFF] (reloadHint)
computeLength
in interface Asn1Object
computeLength
in interface Decorator<SyncRequestValue>
computeLength
in class ControlDecorator<SyncRequestValue>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in interface Decorator<SyncRequestValue>
buffer
- The encoded sinkEncoderException
- If anything goes wrong.public byte[] getValue()
getValue
in interface CodecControl<SyncRequestValue>
getValue
in class ControlDecorator<SyncRequestValue>
public Asn1Object decode(byte[] controlBytes) throws DecoderException
decode
in interface CodecControl<SyncRequestValue>
controlBytes
- the encoded control bytesDecoderException
- if anything goes wrongCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.