|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.handler.AbstractResultHandler<R,O>
R - type of resultO - type of outputpublic abstract class AbstractResultHandler<R,O>
AbstractResultHandler implements common handler functionality.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
Log for this class. |
| Constructor Summary | |
|---|---|
AbstractResultHandler()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public AbstractResultHandler()
| Method Detail |
|---|
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 results
List - LDAP results
NamingException - if the LDAP returns an error
public 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 ignore
List - LDAP results
NamingException - if the LDAP returns an error
public 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 results
List - LDAP results
NamingException - if the LDAP returns an error
protected abstract O processResult(SearchCriteria sc,
R r)
throws NamingException
sc - SearchCriteria used to retrieve the resultr - R result to process
O processed result
NamingException - if the supplied result cannot be read
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||