public abstract class LDAPUpdateMsg extends UpdateMsg
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
bytes
Encoded form of the LDAPUpdateMsg.
|
protected 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| Modifier | Constructor and Description |
|---|---|
protected |
LDAPUpdateMsg()
Creates a new UpdateMsg.
|
| Modifier and Type | Method and Description |
|---|---|
Operation |
createOperation(InternalClientConnection conn)
Create and Operation from the message.
|
abstract Operation |
createOperation(InternalClientConnection conn,
DN newDN)
Create and Operation from the 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.
|
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(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, setSafeDataLevelgenerateMsgprotected byte[] bytes
protected byte[] encodedEclIncludes
protected LDAPUpdateMsg()
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 Operation createOperation(InternalClientConnection conn) throws LDAPException, IOException, DataFormatException
conn - connection to use when creating the messageLDAPException - In case of LDAP decoding exception.IOException - In case of ASN1 decoding exception.DataFormatException - In case of bad msg format.public abstract Operation createOperation(InternalClientConnection conn, DN newDN) throws LDAPException, IOException, DataFormatException
conn - connection to use when creating the message.newDN - the DN to use when creating the operation.LDAPException - In case of LDAP decoding exception.IOException - In case of ASN1 decoding exception.DataFormatException - In case of bad msg format.public void encode()
public ByteArrayBuilder encodeHeader(byte msgType, short protocolVersion)
encodeHeader in class UpdateMsgmsgType - The type of UpdateMsg to encode.protocolVersion - The ProtocolVersion to use when encoding.public byte[] getBytes(short protocolVersion)
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()
protected int headerSize()
public void setEclIncludes(Collection<Attribute> entryAttrs)
entryAttrs - The provided list of entry attributes.public ArrayList<RawAttribute> getEclIncludes()
Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.