public class ModifyMsg extends ModifyCommonMsg
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
ModifyMsg(CSN csn,
Dn dn,
String entryUUID,
List<Modification> mods)
Creates a new Modify message using the provided information.
|
Modifier and Type | Method and Description |
---|---|
ModifyRequest |
createRequest(Dn newDN)
Create a request from this message using the provided DN.
|
byte[] |
getBytesV1()
Get the byte array representation of this message.
|
byte[] |
getBytesV23()
Get the byte array representation of this message.
|
byte[] |
getBytesV4ToLatest(short protocolVersion)
Get the byte array representation of this message.
|
int |
size()
Return the number of bytes used by this message.
|
String |
toString() |
getMods, setMods
createRequest, generateMsg, getBytes, getDN, getEclIncludes, getEntryUUID, setDN, setEclIncludes
compareTo, equals, getBytes, getCSN, getVersion, hashCode
decodeMsg, isRetryable
public ModifyMsg(CSN csn, Dn dn, String entryUUID, List<Modification> mods)
csn
- The CSN for the operation.dn
- The baseDN of the operation.entryUUID
- The unique id of the entry on which the modification needs to apply.mods
- The mod of the operation.public ModifyRequest createRequest(Dn newDN) throws IOException
LDAPUpdateMsg
createRequest
in class LDAPUpdateMsg
newDN
- the DN to use when creating the request.LdapException
- In case of LDAP decoding exceptionIOException
- In case of ASN1 decoding exceptionpublic int size()
UpdateMsg
size
in class LDAPUpdateMsg
public byte[] getBytesV1()
LDAPUpdateMsg
This uses the version 1 of the replication protocol (used for compatibility).
getBytesV1
in class LDAPUpdateMsg
public byte[] getBytesV23()
LDAPUpdateMsg
This uses the version 2 of the replication protocol (used for compatibility).
getBytesV23
in class LDAPUpdateMsg
public byte[] getBytesV4ToLatest(short protocolVersion)
LDAPUpdateMsg
This uses the provided version number which must be at least version 4.
getBytesV4ToLatest
in class LDAPUpdateMsg
protocolVersion
- the actual protocol version to encode intoCopyright 2010-2022 ForgeRock AS.