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, process
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
process, process, process
public AttributeHandler[] getAttributeHandler()
getAttributeHandler
in interface SearchResultHandler
AttributeHandler[]
public void setAttributeHandler(AttributeHandler[] ah)
setAttributeHandler
in interface SearchResultHandler
ah
- AttributeHandler[]
protected SearchResult processResult(SearchCriteria sc, SearchResult sr) throws NamingException
SearchResult
.processResult
in class CopyResultHandler<SearchResult>
sc
- SearchCriteria
used to find enumerationsr
- SearchResult
to copySearchResult
NamingException
- 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 © 2019. All rights reserved.