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 |
write(Asn1Writer stream)
Writes this protocol op to an ASN.1 output stream.
|
toString
public 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()
ProtocolOp
getType
in class ProtocolOp
public String getProtocolOpName()
ProtocolOp
getProtocolOpName
in class ProtocolOp
public void write(Asn1Writer stream) throws IOException
ProtocolOp
write
in class ProtocolOp
stream
- The ASN.1 output stream to write to.IOException
- If a problem occurs while writing to the stream.public void toString(StringBuilder buffer)
ProtocolOp
toString
in class ProtocolOp
buffer
- The buffer to which the string should be appended.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-2018 ForgeRock AS.