public class DeleteMsg extends LDAPUpdateMsg
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
DeleteMsg(Dn dn,
CSN csn,
String entryUUID)
Creates a new delete message.
|
Modifier and Type | Method and Description |
---|---|
DeleteRequest |
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.
|
String |
getInitiatorsName()
Get the initiator's name of this change.
|
boolean |
isSubtreeDelete()
Get the subtree flag.
|
void |
setInitiatorsName(String iname)
Set the initiator's name of this change.
|
void |
setSubtreeDelete(boolean subtreeDelete)
Set the subtree flag.
|
int |
size()
Return the number of bytes used by this message.
|
String |
toString() |
createRequest, generateMsg, getBytes, getDN, getEclIncludes, getEntryUUID, setDN, setEclIncludes
compareTo, equals, getBytes, getCSN, getVersion, hashCode
decodeMsg, isRetryable
public DeleteRequest createRequest(Dn newDN)
LDAPUpdateMsg
createRequest
in class LDAPUpdateMsg
newDN
- the DN to use when creating the request.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 intopublic int size()
UpdateMsg
size
in class LDAPUpdateMsg
public void setInitiatorsName(String iname)
iname
- the initiator's name.public String getInitiatorsName()
public void setSubtreeDelete(boolean subtreeDelete)
subtreeDelete
- the subtree flag.public boolean isSubtreeDelete()
Copyright 2010-2022 ForgeRock AS.