public class SearchResultEntryProtocolOp extends ProtocolOp
| Constructor and Description |
|---|
SearchResultEntryProtocolOp(DN dn)
Creates a new LDAP search result entry protocol op with the specified DN
and no attributes.
|
SearchResultEntryProtocolOp(DN dn,
LinkedList<LDAPAttribute> attributes)
Creates a new LDAP search result entry protocol op with the specified DN
and set of attributes.
|
SearchResultEntryProtocolOp(SearchResultEntry searchEntry)
Creates a new search result entry protocol op from the provided search
result entry.
|
SearchResultEntryProtocolOp(SearchResultEntry searchEntry,
int ldapVersion)
Creates a new search result entry protocol op from the provided search
result entry and ldap protocol version.
|
| Modifier and Type | Method and Description |
|---|---|
LinkedList<LDAPAttribute> |
getAttributes()
Retrieves the set of attributes for this search result entry.
|
DN |
getDN()
Retrieves the DN for this search result entry.
|
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.
|
SearchResultEntry |
toSearchResultEntry()
Converts this protocol op to a search result entry.
|
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 SearchResultEntryProtocolOp(DN dn)
dn - The DN for this search result entry.public SearchResultEntryProtocolOp(DN dn, LinkedList<LDAPAttribute> attributes)
dn - The DN for this search result entry.attributes - The set of attributes for this search result entry.public SearchResultEntryProtocolOp(SearchResultEntry searchEntry)
searchEntry - The search result entry object to use to create this
search result entry protocol op.public SearchResultEntryProtocolOp(SearchResultEntry searchEntry, int ldapVersion)
searchEntry - The search result entry object to use to create this
search result entry protocol op.ldapVersion - The version of the LDAP protocol.public DN getDN()
public LinkedList<LDAPAttribute> 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.public SearchResultEntry toSearchResultEntry() throws LDAPException
LDAPException - If a problem occurs while trying to create the
search result entry.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.