edu.vt.middleware.ldap.handler
R
- type of resultO
- type of outputpublic abstract class AbstractResultHandler<R,O> extends java.lang.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 |
---|---|
java.util.List<O> |
process(SearchCriteria sc,
java.util.List<? extends R> l)
This will enumerate through the supplied
List and return a
List of those results. |
java.util.List<O> |
process(SearchCriteria sc,
javax.naming.NamingEnumeration<? extends R> en)
This will enumerate through the supplied
NamingEnumeration and
return a List of those results. |
java.util.List<O> |
process(SearchCriteria sc,
javax.naming.NamingEnumeration<? extends R> en,
java.lang.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 java.util.List<O> process(SearchCriteria sc, javax.naming.NamingEnumeration<? extends R> en) throws javax.naming.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 resultsjavax.naming.NamingException
- if the LDAP returns an errorpublic java.util.List<O> process(SearchCriteria sc, javax.naming.NamingEnumeration<? extends R> en, java.lang.Class<?>[] ignore) throws javax.naming.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 resultsjavax.naming.NamingException
- if the LDAP returns an errorpublic java.util.List<O> process(SearchCriteria sc, java.util.List<? extends R> l) throws javax.naming.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 resultsjavax.naming.NamingException
- if the LDAP returns an errorprotected abstract O processResult(SearchCriteria sc, R r) throws javax.naming.NamingException
sc
- SearchCriteria
used to retrieve the resultr
- R
result to processO
processed resultjavax.naming.NamingException
- if the supplied result cannot be readCopyright © 2014. All Rights Reserved.