R - type of resultO - type of outputpublic abstract class AbstractResultHandler<R,O> extends Object implements ResultHandler<R,O>
AbstractResultHandler implements common handler functionality.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger
Log for this class.
|
| Constructor and Description |
|---|
AbstractResultHandler() |
| Modifier and Type | Method and Description |
|---|---|
List<O> |
process(SearchCriteria sc,
List<? extends R> l)
This will enumerate through the supplied
List and return a
List of those results. |
List<O> |
process(SearchCriteria sc,
NamingEnumeration<? extends R> en)
This will enumerate through the supplied
NamingEnumeration and
return a List of those results. |
List<O> |
process(SearchCriteria sc,
NamingEnumeration<? extends R> en,
Class<?>[] ignore)
This will enumerate through the supplied
NamingEnumeration and
return a List of those results. |
protected abstract O |
processResult(SearchCriteria sc,
R r)
Processes the supplied result.
|
public List<O> process(SearchCriteria sc, NamingEnumeration<? extends R> en) throws NamingException
NamingEnumeration and
return a List of those results. The results are unaltered and the dn is
ignored.process in interface ResultHandler<R,O>sc - SearchCriteria used to find enumerationen - NamingEnumeration LDAP resultsList - LDAP resultsNamingException - if the LDAP returns an errorpublic List<O> process(SearchCriteria sc, NamingEnumeration<? extends R> en, Class<?>[] ignore) throws NamingException
NamingEnumeration and
return a List of those results. The results are unaltered and the dn is
ignored. Any exceptions passed into this method will be ignored and results
will be returned as if no exception occurred.process in interface ResultHandler<R,O>sc - SearchCriteria used to find enumerationen - NamingEnumeration LDAP resultsignore - Class[] of exception types to ignoreList - LDAP resultsNamingException - if the LDAP returns an errorpublic List<O> process(SearchCriteria sc, List<? extends R> l) throws NamingException
List and return a
List of those results. The results are unaltered and the dn is ignored.process in interface ResultHandler<R,O>sc - SearchCriteria used to find enumerationl - List LDAP resultsList - LDAP resultsNamingException - if the LDAP returns an errorprotected abstract O processResult(SearchCriteria sc, R r) throws NamingException
sc - SearchCriteria used to retrieve the resultr - R result to processO processed resultNamingException - if the supplied result cannot be readCopyright © 2014. All rights reserved.