public class AddRequestProtocolOp extends ProtocolOp
| Constructor and Description |
|---|
AddRequestProtocolOp(org.forgerock.opendj.ldap.ByteString dn)
Creates a new LDAP add request protocol op with the specified DN and no
attributes.
|
AddRequestProtocolOp(org.forgerock.opendj.ldap.ByteString dn,
List<RawAttribute> attributes)
Creates a new LDAP add request protocol op with the specified DN and set of
attributes.
|
| Modifier and Type | Method and Description |
|---|---|
List<RawAttribute> |
getAttributes()
Retrieves the set of attributes for this add request.
|
org.forgerock.opendj.ldap.ByteString |
getDN()
Retrieves the DN for this add request.
|
String |
getProtocolOpName()
Retrieves the name for this protocol op type.
|
byte |
getType()
Retrieves the BER type for this protocol op.
|
void |
toLDIF(StringBuilder buffer,
int wrapColumn)
Appends an LDIF representation of the entry to the provided buffer.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this LDAP protocol op to the provided
buffer.
|
void |
toString(StringBuilder buffer,
int indent)
Appends a multi-line string representation of this LDAP protocol op to the
provided buffer.
|
void |
write(org.forgerock.opendj.io.ASN1Writer stream)
Writes this protocol op to an ASN.1 output stream.
|
toStringpublic AddRequestProtocolOp(org.forgerock.opendj.ldap.ByteString dn)
dn - The DN for this add request.public AddRequestProtocolOp(org.forgerock.opendj.ldap.ByteString dn, List<RawAttribute> attributes)
dn - The DN for this add request.attributes - The set of attributes for this add request.public org.forgerock.opendj.ldap.ByteString getDN()
public List<RawAttribute> getAttributes()
public byte getType()
getType in class ProtocolOppublic String getProtocolOpName()
getProtocolOpName in class ProtocolOppublic void write(org.forgerock.opendj.io.ASN1Writer stream) throws IOException
write in class ProtocolOpstream - The ASN.1 output stream to write to.IOException - If a problem occurs while writing to the stream.public void toString(StringBuilder buffer)
toString in class ProtocolOpbuffer - The buffer to which the string should be appended.public void toString(StringBuilder buffer, int indent)
toString in class ProtocolOpbuffer - The buffer to which the information should be appended.indent - The number of spaces from the margin that the lines should
be indented.public void toLDIF(StringBuilder buffer, int wrapColumn)
buffer - The buffer to which the entry should be appended.wrapColumn - The column at which long lines should be wrapped.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.