edu.vt.middleware.ldap.handler
public class CopySearchResultHandler extends CopyResultHandler<javax.naming.directory.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 javax.naming.directory.Attributes |
processAttributes(SearchCriteria sc,
javax.naming.directory.SearchResult sr)
Process the attributes of an ldap search.
|
protected java.lang.String |
processDn(SearchCriteria sc,
javax.naming.directory.SearchResult sr)
Process the dn of an ldap search result.
|
protected javax.naming.directory.SearchResult |
processResult(SearchCriteria sc,
javax.naming.directory.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 javax.naming.directory.SearchResult processResult(SearchCriteria sc, javax.naming.directory.SearchResult sr) throws javax.naming.NamingException
SearchResult
.processResult
in class CopyResultHandler<javax.naming.directory.SearchResult>
sc
- SearchCriteria
used to find enumerationsr
- SearchResult
to copySearchResult
javax.naming.NamingException
- if the result cannot be readprotected java.lang.String processDn(SearchCriteria sc, javax.naming.directory.SearchResult sr)
sc
- SearchCriteria
used to find search resultsr
- SearchResult
to extract the dn fromString
processed dnprotected javax.naming.directory.Attributes processAttributes(SearchCriteria sc, javax.naming.directory.SearchResult sr) throws javax.naming.NamingException
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.