public class EndTransactionRequestDecorator
extends org.apache.directory.api.ldap.codec.decorators.ExtendedRequestDecorator<org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionRequest>
implements org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionRequest
| Modifier and Type | Field and Description |
|---|---|
private org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionRequest |
endTransactionRequest
The internal EndTransaction request
|
private static org.slf4j.Logger |
LOG |
private int |
requestLength
stores the length of the request
|
| Constructor and Description |
|---|
EndTransactionRequestDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionRequest decoratedMessage)
Creates a new instance of EndTransactionRequestDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
computeLengthInternal()
Compute the EndTransactionRequest extended operation length
|
(package private) ByteBuffer |
encodeInternal()
Encodes the EndTransactionRequest extended operation.
|
boolean |
getCommit() |
org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionResponse |
getResultResponse() |
byte[] |
getTransactionId() |
void |
setCommit(boolean commit) |
void |
setRequestValue(byte[] requestValue) |
void |
setTransactionId(byte[] transactionId) |
addAllControls, addControl, computeLength, encode, getRequestName, getRequestValue, removeControl, setMessageId, setRequestNameabandon, addAbandonListener, getResponseType, isAbandonedhasResponseget, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, setControlsLength, setMessageLength, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestNameprivate static final org.slf4j.Logger LOG
private org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionRequest endTransactionRequest
private int requestLength
public EndTransactionRequestDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionRequest decoratedMessage)
codec - The LDAP Service to usedecoratedMessage - The canceled requestpublic org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionResponse getResultResponse()
getResultResponse in interface org.apache.directory.api.ldap.model.message.ResultResponseRequestgetResultResponse in class org.apache.directory.api.ldap.codec.decorators.ResultResponseRequestDecorator<org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionRequest>public boolean getCommit()
getCommit in interface org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionRequestpublic void setCommit(boolean commit)
setCommit in interface org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionRequestpublic byte[] getTransactionId()
getTransactionId in interface org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionRequestpublic void setTransactionId(byte[] transactionId)
setTransactionId in interface org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionRequestpublic void setRequestValue(byte[] requestValue)
setRequestValue in class org.apache.directory.api.ldap.codec.decorators.ExtendedRequestDecorator<org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionRequest>int computeLengthInternal()
0x30 L1 | +-- 0x01 0x01 commit +-- 0x04 L2 identifier]
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.