public class EndTransactionResponseDecorator
extends org.apache.directory.api.ldap.codec.decorators.ExtendedResponseDecorator<org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionResponse>
implements org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionResponse
| Modifier and Type | Field and Description |
|---|---|
private int[][] |
controlLengths
The message controls' lengths
|
private int[] |
controlsLengths
Stores the Controls global lengths
|
private org.apache.directory.api.ldap.extras.extended.endTransaction.UpdateControls |
currentUpdateControls
The current UpdateControls
|
private org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionResponse |
endTransactionResponse
The endTransaction response
|
private int |
globalSequenceLength
Stores the length of the request
|
private static org.slf4j.Logger |
LOG |
private int[] |
updateControlsLength
Stores the length of updateControls
|
private int |
updateSequenceLength
Stores the length of the updateControls part
|
| Constructor and Description |
|---|
EndTransactionResponseDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionResponse decoratedMessage)
Creates a new instance of EndTransactionResponseDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
computeLengthInternal()
Compute the EndTransactionResponse extended operation length
|
(package private) ByteBuffer |
encodeInternal()
Encodes the EndTransactionResponse extended operation.
|
org.apache.directory.api.ldap.extras.extended.endTransaction.UpdateControls |
getCurrentUpdateControls() |
int |
getFailedMessageId() |
List<org.apache.directory.api.ldap.extras.extended.endTransaction.UpdateControls> |
getUpdateControls() |
void |
setCurrentControls(org.apache.directory.api.ldap.extras.extended.endTransaction.UpdateControls currentUpdateControls) |
void |
setFailedMessageId(int failedMessageId) |
void |
setResponseValue(byte[] responseValue) |
computeLength, encode, getResponseName, getResponseValue, setResponseNamegetLdapResult, setLdapResultaddAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetResponseName, setResponseNameprivate static final org.slf4j.Logger LOG
private org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionResponse endTransactionResponse
private org.apache.directory.api.ldap.extras.extended.endTransaction.UpdateControls currentUpdateControls
private int globalSequenceLength
private int updateSequenceLength
private int[] updateControlsLength
private int[] controlsLengths
private int[][] controlLengths
public EndTransactionResponseDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionResponse decoratedMessage)
codec - The LDAP service instancedecoratedMessage - The decorated messagepublic void setResponseValue(byte[] responseValue)
setResponseValue in class org.apache.directory.api.ldap.codec.decorators.ExtendedResponseDecorator<org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionResponse>public int getFailedMessageId()
getFailedMessageId in interface org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionResponsepublic void setFailedMessageId(int failedMessageId)
setFailedMessageId in interface org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionResponsepublic List<org.apache.directory.api.ldap.extras.extended.endTransaction.UpdateControls> getUpdateControls()
getUpdateControls in interface org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionResponsepublic org.apache.directory.api.ldap.extras.extended.endTransaction.UpdateControls getCurrentUpdateControls()
public void setCurrentControls(org.apache.directory.api.ldap.extras.extended.endTransaction.UpdateControls currentUpdateControls)
currentUpdateControls - the currentUpdateControls to setint computeLengthInternal()
0x30 L1
|
[+-- 0x02 L2 failed message ID]
[+-- 0x30 L3 updateControls SEQUENCE OF
|
+-- 0x30 L4 updateControls SEQUENCE
|
+-- 0x02 L5 messageID
+-- ]
ByteBuffer encodeInternal() throws org.apache.directory.api.asn1.EncoderException
org.apache.directory.api.asn1.EncoderException - If anything goes wrong.Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.