public class EndTransactionResponseImpl extends AbstractExtendedResponse implements EndTransactionResponse
ExtendedResponse ::= [APPLICATION 24] SEQUENCE { COMPONENTS OF LDAPResult, responseName [10] LDAPOID OPTIONAL, responseValue [11] OCTET STRING OPTIONAL }where the responseName is not present, and the responseValue contains a BER encoded value, defined by the following grammar :
txnEndRes ::= SEQUENCE { messageID MessageID OPTIONAL, -- msgid associated with non-success resultCode updatesControls SEQUENCE OF updateControls SEQUENCE { messageID MessageID, -- msgid associated with controls controls Controls } OPTIONAL }
EXTENSION_OID
Constructor and Description |
---|
EndTransactionResponseImpl()
Create a new StartTransactionResponseImpl instance
|
EndTransactionResponseImpl(int messageId)
Create a new EndTransactionResponseImpl instance
|
EndTransactionResponseImpl(int failedMessageId,
ResultCodeEnum resultCode)
Create a new EndTransactionResponseImpl object
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Checks to see if an object equals this ExtendedRequest.
|
int |
getFailedMessageId() |
List<UpdateControls> |
getUpdateControls() |
int |
hashCode() |
void |
setFailedMessageId(int failedMessageId) |
void |
setUpdateControls(List<UpdateControls> updateControls) |
getResponseName, setResponseName, toString
getLdapResult
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toString
getResponseName, setResponseName
getLdapResult
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
public EndTransactionResponseImpl(int failedMessageId, ResultCodeEnum resultCode)
failedMessageId
- The faulty messageIdresultCode
- the result codepublic EndTransactionResponseImpl(int messageId)
messageId
- The request's messageIdpublic EndTransactionResponseImpl()
public int getFailedMessageId()
getFailedMessageId
in interface EndTransactionResponse
public void setFailedMessageId(int failedMessageId)
setFailedMessageId
in interface EndTransactionResponse
failedMessageId
- The messageId that causes the failurepublic List<UpdateControls> getUpdateControls()
getUpdateControls
in interface EndTransactionResponse
public void setUpdateControls(List<UpdateControls> updateControls)
updateControls
- the updateControls to setpublic int hashCode()
hashCode
in class AbstractExtendedResponse
Object.hashCode()
public boolean equals(Object obj)
AbstractExtendedResponse
equals
in class AbstractExtendedResponse
obj
- the object to be checked for equalityObject.equals(Object)
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.