edu.vt.middleware.ldap.handler
Class EntryDnSearchResultHandler
java.lang.Object
edu.vt.middleware.ldap.handler.AbstractResultHandler<T,T>
edu.vt.middleware.ldap.handler.CopyResultHandler<SearchResult>
edu.vt.middleware.ldap.handler.CopySearchResultHandler
edu.vt.middleware.ldap.handler.EntryDnSearchResultHandler
- All Implemented Interfaces:
- ResultHandler<SearchResult,SearchResult>, SearchResultHandler
public class EntryDnSearchResultHandler
- extends CopySearchResultHandler
EntryDnSearchResultHandler adds the search result DN as an
attribute to the result set. Provides a client side implementation of RFC
5020.
- Version:
- $Revision: 1330 $ $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
- Author:
- Middleware Services
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntryDnSearchResultHandler
public EntryDnSearchResultHandler()
getDnAttributeName
public String getDnAttributeName()
- Returns the DN attribute name.
- Returns:
String
setDnAttributeName
public void setDnAttributeName(String s)
- Sets the DN attribute name.
- Parameters:
s - String
isAddIfExists
public boolean isAddIfExists()
- Returns whether to add the entryDN if an attribute of the same name exists.
- Returns:
boolean
setAddIfExists
public void setAddIfExists(boolean b)
- Sets whether to add the entryDN if an attribute of the same name exists.
- Parameters:
b - boolean
processAttributes
protected Attributes processAttributes(SearchCriteria sc,
SearchResult sr)
throws NamingException
- Process the attributes of an ldap search.
- Overrides:
processAttributes in class CopySearchResultHandler
- Parameters:
sc - SearchCriteria used to find search resultsr - SearchResult to extract the attributes from
- Returns:
Attributes processed attributes
- Throws:
NamingException - if the LDAP returns an error
Copyright © 2003-2010 Virginia Tech. All Rights Reserved.