|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.handler.AbstractResultHandler<T,T>
edu.vt.middleware.ldap.handler.CopyResultHandler<SearchResult>
edu.vt.middleware.ldap.handler.CopySearchResultHandler
public class CopySearchResultHandler
CopySearchResultHandler converts a NamingEnumeration of search
results into a List of search results.
| Field Summary |
|---|
| Fields inherited from class edu.vt.middleware.ldap.handler.AbstractResultHandler |
|---|
logger |
| Constructor Summary | |
|---|---|
CopySearchResultHandler()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class edu.vt.middleware.ldap.handler.AbstractResultHandler |
|---|
process, process, process |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.vt.middleware.ldap.handler.ResultHandler |
|---|
process, process, process |
| Constructor Detail |
|---|
public CopySearchResultHandler()
| Method Detail |
|---|
public AttributeHandler[] getAttributeHandler()
getAttributeHandler in interface SearchResultHandlerAttributeHandler[]public void setAttributeHandler(AttributeHandler[] ah)
setAttributeHandler in interface SearchResultHandlerah - AttributeHandler[]
protected SearchResult processResult(SearchCriteria sc,
SearchResult sr)
throws NamingException
SearchResult.
processResult in class CopyResultHandler<SearchResult>sc - SearchCriteria used to find enumerationsr - SearchResult to copy
SearchResult
NamingException - if the result cannot be read
protected String processDn(SearchCriteria sc,
SearchResult sr)
sc - SearchCriteria used to find search resultsr - SearchResult to extract the dn from
String processed dn
protected Attributes processAttributes(SearchCriteria sc,
SearchResult sr)
throws NamingException
sc - SearchCriteria used to find search resultsr - SearchResult to extract the attributes from
Attributes processed attributes
NamingException - if the LDAP returns an error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||