public abstract class LDAPUpdateMsg extends UpdateMsg
Modifier and Type | Field and Description |
---|---|
protected byte[] |
bytes
Encoded form of the LDAPUpdateMsg.
|
protected org.forgerock.opendj.ldap.Dn |
dn
The DN on which the update was originally done.
|
protected byte[] |
encodedEclIncludes
Encoded form of entry attributes.
|
protected String |
entryUUID
The entryUUID of the entry that was updated.
|
assuredFlag, assuredMode, csn, protocolVersion, safeDataLevel
MSG_TYPE_DISK_ENCODING
Modifier | Constructor and Description |
---|---|
protected |
LDAPUpdateMsg()
Creates a new UpdateMsg.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.ldap.messages.Request |
createRequest()
Create a request from this message.
|
abstract org.forgerock.opendj.ldap.messages.Request |
createRequest(org.forgerock.opendj.ldap.Dn newDN)
Create a request from this message using the provided DN.
|
void |
encode()
Do all the work necessary for the encoding.
|
ByteArrayBuilder |
encodeHeader(byte msgType,
short protocolVersion)
Encode the common header for all the UpdateMsg.
|
static LDAPUpdateMsg |
generateMsg(PostOperationOperation op)
Generates an Update message with the provided information.
|
protected abstract byte[] |
getBytes_V1()
Get the byte array representation of this message.
|
protected abstract byte[] |
getBytes_V23()
Get the byte array representation of this message.
|
protected abstract byte[] |
getBytes_V45(short protocolVersion)
Get the byte array representation of this message.
|
byte[] |
getBytes(short protocolVersion)
This implementation is only called during unit testing, so we are free to
force the protocol version.
|
org.forgerock.opendj.ldap.Dn |
getDN()
Get the DN on which the operation happened.
|
ArrayList<RawAttribute> |
getEclIncludes()
Returns the list of entry attributes.
|
String |
getEntryUUID()
Get the entryUUID of the entry on which the operation happened.
|
protected int |
headerSize()
Return the number of bytes used by the header.
|
void |
setDN(org.forgerock.opendj.ldap.Dn dn)
Set the DN.
|
void |
setEclIncludes(Collection<Attribute> entryAttrs)
Set a provided list of entry attributes.
|
abstract int |
size()
Return the number of bytes used by this message.
|
compareTo, contributesToDomainState, decodeHeader, equals, getAssuredMode, getBytes, getCSN, getPayload, getSafeDataLevel, getVersion, hashCode, isAssured, setAssured, setAssuredMode, setSafeDataLevel
generateMsg
protected org.forgerock.opendj.ldap.Dn dn
protected byte[] bytes
protected byte[] encodedEclIncludes
protected LDAPUpdateMsg()
public static LDAPUpdateMsg generateMsg(PostOperationOperation op)
op
- The operation for which the message must be created.public org.forgerock.opendj.ldap.Dn getDN()
public void setDN(org.forgerock.opendj.ldap.Dn dn)
dn
- The dn that must now be used for this message.public String getEntryUUID()
public org.forgerock.opendj.ldap.messages.Request createRequest() throws LDAPException, IOException
LDAPException
- In case of LDAP decoding exception.IOException
- In case of ASN1 decoding exception.public abstract org.forgerock.opendj.ldap.messages.Request createRequest(org.forgerock.opendj.ldap.Dn newDN) throws LDAPException, IOException
newDN
- the DN to use when creating the request.LDAPException
- In case of LDAP decoding exceptionIOException
- In case of ASN1 decoding exceptionpublic void encode()
public ByteArrayBuilder encodeHeader(byte msgType, short protocolVersion)
UpdateMsg
encodeHeader
in class UpdateMsg
msgType
- The type of UpdateMsg to encode.protocolVersion
- The ProtocolVersion to use when encoding.public byte[] getBytes(short protocolVersion)
UpdateMsg
protected abstract byte[] getBytes_V1()
protected abstract byte[] getBytes_V23()
protected abstract byte[] getBytes_V45(short protocolVersion)
protocolVersion
- the actual protocol version to encode intopublic abstract int size()
UpdateMsg
protected int headerSize()
public void setEclIncludes(Collection<Attribute> entryAttrs)
entryAttrs
- The provided list of entry attributes.public ArrayList<RawAttribute> getEclIncludes()
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.