public class CopySearchResultHandler extends CopyResultHandler<SearchResult> implements SearchResultHandler
CopySearchResultHandler converts a NamingEnumeration of search
results into a List of search results.logger| Constructor and Description |
|---|
CopySearchResultHandler() |
| Modifier and Type | Method and Description |
|---|---|
AttributeHandler[] |
getAttributeHandler()
Gets the attribute handlers.
|
protected Attributes |
processAttributes(SearchCriteria sc,
SearchResult sr)
Process the attributes of an ldap search.
|
protected String |
processDn(SearchCriteria sc,
SearchResult sr)
Process the dn of an ldap search result.
|
protected SearchResult |
processResult(SearchCriteria sc,
SearchResult sr)
This will return a deep copy of the supplied
SearchResult. |
void |
setAttributeHandler(AttributeHandler[] ah)
Sets the attribute handlers.
|
process, process, processclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocess, process, processpublic AttributeHandler[] getAttributeHandler()
getAttributeHandler in interface SearchResultHandlerAttributeHandler[]public void setAttributeHandler(AttributeHandler[] ah)
setAttributeHandler in interface SearchResultHandlerah - AttributeHandler[]protected SearchResult processResult(SearchCriteria sc, SearchResult sr) throws NamingException
SearchResult.processResult in class CopyResultHandler<SearchResult>sc - SearchCriteria used to find enumerationsr - SearchResult to copySearchResultNamingException - if the result cannot be readprotected String processDn(SearchCriteria sc, SearchResult sr)
sc - SearchCriteria used to find search resultsr - SearchResult to extract the dn fromString processed dnprotected Attributes processAttributes(SearchCriteria sc, SearchResult sr) throws NamingException
sc - SearchCriteria used to find search resultsr - SearchResult to extract the attributes fromAttributes processed attributesNamingException - if the LDAP returns an errorCopyright © 2014. All rights reserved.