public class GracefulDisconnectResponseDecorator extends ExtendedResponseDecorator<GracefulDisconnectResponse> implements GracefulDisconnectResponse
| Modifier and Type | Field and Description |
|---|---|
private GracefulDisconnectResponse |
gracefulDisconnectResponse |
private int |
gracefulDisconnectSequenceLength
Length of the sequence
|
private java.util.List<byte[]> |
ldapUrlBytes
The encoded LDAP URL list
|
private static org.slf4j.Logger |
LOG
The logger.
|
private int |
replicatedContextsLength
Length of the replicated contexts
|
responseValuemessageLengthEXTENSION_OIDTYPE| Constructor and Description |
|---|
GracefulDisconnectResponseDecorator(LdapApiService codec,
GracefulDisconnectResponse decoratedMessage)
Creates a new instance of CancelResponseDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addReplicatedContexts(java.lang.String replicatedContext)
Add a new URL of a replicated server
|
(package private) int |
computeLengthInternal()
Compute the GracefulDisconnect length
|
(package private) java.nio.ByteBuffer |
encodeInternal()
Encodes the gracefulDisconnect extended operation.
|
int |
getDelay()
Gets the delay before disconnection, in seconds.
|
Referral |
getReplicatedContexts()
Gets the replicated contexts.
|
byte[] |
getResponseValue()
Gets the response OID specific encoded response values.
|
int |
getTimeOffline()
Gets the offline time after disconnection, in minutes.
|
void |
setDelay(int delay)
Sets the delay before disconnection, in seconds.
|
void |
setResponseValue(byte[] responseValue)
Sets the response OID specific encoded response values.
|
void |
setTimeOffline(int timeOffline)
Sets the time offline after disconnection, in minutes.
|
java.lang.String |
toString()
Return a string representation of the graceful disconnect
|
computeLength, encode, getResponseName, setResponseNamegetLdapResult, setLdapResultaddAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetResponseName, setResponseNamegetLdapResultaddAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageIdprivate static final org.slf4j.Logger LOG
private int gracefulDisconnectSequenceLength
private int replicatedContextsLength
private java.util.List<byte[]> ldapUrlBytes
private GracefulDisconnectResponse gracefulDisconnectResponse
public GracefulDisconnectResponseDecorator(LdapApiService codec, GracefulDisconnectResponse decoratedMessage)
codec - decoratedMessage - public byte[] getResponseValue()
getResponseValue in class ExtendedResponseDecorator<GracefulDisconnectResponse>public void setResponseValue(byte[] responseValue)
setResponseValue in class ExtendedResponseDecorator<GracefulDisconnectResponse>responseValue - the response specific encoded response values.public int getDelay()
getDelay in interface GracefulDisconnectResponsepublic void setDelay(int delay)
setDelay in interface GracefulDisconnectResponsedelay - the new delay before disconnectionpublic int getTimeOffline()
getTimeOffline in interface GracefulDisconnectResponsepublic void setTimeOffline(int timeOffline)
setTimeOffline in interface GracefulDisconnectResponsetimeOffline - the new time offline after disconnectionpublic Referral getReplicatedContexts()
getReplicatedContexts in interface GracefulDisconnectResponsepublic void addReplicatedContexts(java.lang.String replicatedContext)
addReplicatedContexts in interface GracefulDisconnectResponsereplicatedContext - The replicated server to add.int computeLengthInternal()
0x30 L1
|
+--> [ 0x02 0x0(1-4) [0..720] ]
+--> [ 0x80 0x0(1-3) [0..86400] ]
+--> [ 0x30 L2
|
+--> (0x04 L3 value) + ]
java.nio.ByteBuffer encodeInternal()
throws EncoderException
EncoderException - If anything goes wrong.public java.lang.String toString()
toString in class MessageDecorator<GracefulDisconnectResponse>