edu.vt.middleware.ldap.handler
public class EntryDnSearchResultHandler extends CopySearchResultHandler
EntryDnSearchResultHandler
adds the search result DN as an
attribute to the result set. Provides a client side implementation of RFC
5020.logger
Constructor and Description |
---|
EntryDnSearchResultHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDnAttributeName()
Returns the DN attribute name.
|
boolean |
isAddIfExists()
Returns whether to add the entryDN if an attribute of the same name exists.
|
protected javax.naming.directory.Attributes |
processAttributes(SearchCriteria sc,
javax.naming.directory.SearchResult sr)
Process the attributes of an ldap search.
|
void |
setAddIfExists(boolean b)
Sets whether to add the entryDN if an attribute of the same name exists.
|
void |
setDnAttributeName(java.lang.String s)
Sets the DN attribute name.
|
getAttributeHandler, processDn, processResult, setAttributeHandler
process, process, process
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
process, process, process
public java.lang.String getDnAttributeName()
String
public void setDnAttributeName(java.lang.String s)
s
- String
public boolean isAddIfExists()
boolean
public void setAddIfExists(boolean b)
b
- boolean
protected javax.naming.directory.Attributes processAttributes(SearchCriteria sc, javax.naming.directory.SearchResult sr) throws javax.naming.NamingException
processAttributes
in class CopySearchResultHandler
sc
- SearchCriteria
used to find search resultsr
- SearchResult
to extract the attributes fromAttributes
processed attributesjavax.naming.NamingException
- if the LDAP returns an errorCopyright © 2014. All Rights Reserved.