Class StartTransactionResponseDecorator
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.api.MessageDecorator<M>
-
- org.apache.directory.api.ldap.codec.decorators.ResponseDecorator<R>
-
- org.apache.directory.api.ldap.codec.decorators.ExtendedResponseDecorator<StartTransactionResponse>
-
- org.apache.directory.api.ldap.extras.extended.ads_impl.startTransaction.StartTransactionResponseDecorator
-
- All Implemented Interfaces:
Asn1Object
,Decorator<StartTransactionResponse>
,StartTransactionResponse
,ExtendedResponse
,Message
,Response
,ResultResponse
public class StartTransactionResponseDecorator extends ExtendedResponseDecorator<StartTransactionResponse> implements StartTransactionResponse
A Decorator for EndTransactionResponses.- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.extras.extended.startTransaction.StartTransactionResponse
EXTENSION_OID
-
-
Constructor Summary
Constructors Constructor Description StartTransactionResponseDecorator(LdapApiService codec, StartTransactionResponse decoratedMessage)
Creates a new instance of EndTransactionResponseDecorator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getTransactionId()
void
setResponseValue(byte[] responseValue)
sets the Extended response payload-
Methods inherited from class org.apache.directory.api.ldap.codec.decorators.ExtendedResponseDecorator
computeLength, encode, getResponseName, getResponseValue, setResponseName
-
Methods inherited from class org.apache.directory.api.ldap.codec.decorators.ResponseDecorator
getLdapResult, setLdapResult
-
Methods inherited from class org.apache.directory.api.ldap.codec.api.MessageDecorator
addAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.ExtendedResponse
getResponseName, setResponseName
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse
getLdapResult
-
-
-
-
Constructor Detail
-
StartTransactionResponseDecorator
public StartTransactionResponseDecorator(LdapApiService codec, StartTransactionResponse decoratedMessage)
Creates a new instance of EndTransactionResponseDecorator.- Parameters:
codec
- The LDAP service instancedecoratedMessage
- The decorated message
-
-
Method Detail
-
setResponseValue
public void setResponseValue(byte[] responseValue)
sets the Extended response payload- Overrides:
setResponseValue
in classExtendedResponseDecorator<StartTransactionResponse>
- Parameters:
responseValue
- The extended payload
-
getTransactionId
public byte[] getTransactionId()
- Specified by:
getTransactionId
in interfaceStartTransactionResponse
- Returns:
- The transaction ID if success
-
-