public abstract class LDAPUpdateMsg extends UpdateMsg
MSG_TYPE_DISK_ENCODING
Modifier | Constructor and Description |
---|---|
protected |
LDAPUpdateMsg()
Creates a new UpdateMsg.
|
Modifier and Type | Method and Description |
---|---|
ChangeRecord |
createRequest()
Create a request from this message.
|
abstract ChangeRecord |
createRequest(Dn newDN)
Create a request from this message using the provided DN.
|
static LDAPUpdateMsg |
generateMsg(PostOperationOperation op)
Generates an Update message with the provided information.
|
byte[] |
getBytes(short protocolVersion)
Serializes the PDU using the provided replication protocol version.
|
protected abstract byte[] |
getBytesV1()
Get the byte array representation of this message.
|
protected abstract byte[] |
getBytesV23()
Get the byte array representation of this message.
|
protected abstract byte[] |
getBytesV4ToLatest(short protocolVersion)
Get the byte array representation of this message.
|
Dn |
getDN()
Get the DN on which the operation happened.
|
List<Attribute> |
getEclIncludes()
Returns the list of entry attributes.
|
String |
getEntryUUID()
Get the entryUUID of the entry on which the operation happened.
|
void |
setDN(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, equals, getBytes, getCSN, getVersion, hashCode, toString
decodeMsg, isRetryable
public static LDAPUpdateMsg generateMsg(PostOperationOperation op)
op
- The operation for which the message must be created.public Dn getDN()
public void setDN(Dn dn)
dn
- The dn that must now be used for this message.public String getEntryUUID()
public ChangeRecord createRequest() throws IOException
LdapException
- In case of LDAP decoding exception.IOException
- In case of ASN1 decoding exception.public abstract ChangeRecord createRequest(Dn newDN) throws IOException
newDN
- the DN to use when creating the request.LdapException
- In case of LDAP decoding exceptionIOException
- In case of ASN1 decoding exceptionpublic byte[] getBytes(short protocolVersion)
ReplicationMsg
protected abstract byte[] getBytesV1()
This uses the version 1 of the replication protocol (used for compatibility).
protected abstract byte[] getBytesV23()
This uses the version 2 of the replication protocol (used for compatibility).
protected abstract byte[] getBytesV4ToLatest(short protocolVersion)
This uses the provided version number which must be at least version 4.
protocolVersion
- the actual protocol version to encode intopublic abstract int size()
UpdateMsg
public void setEclIncludes(Collection<Attribute> entryAttrs)
entryAttrs
- The provided list of entry attributes.Copyright 2010-2022 ForgeRock AS.