public class DnAttributeEntryHandler extends AbstractSearchEntryHandler
| Modifier and Type | Field and Description | 
|---|---|
private boolean | 
addIfExists
Whether to add the entry dn if an attribute of the same name exists. 
 | 
private String | 
dnAttributeName
Attribute name for the entry dn. 
 | 
private static int | 
HASH_CODE_SEED
hash code seed. 
 | 
logger| Constructor and Description | 
|---|
DnAttributeEntryHandler()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object o)  | 
String | 
getDnAttributeName()
Returns the DN attribute name. 
 | 
protected void | 
handleAttributes(Connection conn,
                SearchRequest request,
                SearchEntry entry)
Handle the attributes of a search entry. 
 | 
int | 
hashCode()  | 
boolean | 
isAddIfExists()
Returns whether to add the entryDN if an attribute of the same name exists. 
 | 
void | 
setAddIfExists(boolean b)
Sets whether to add the entryDN if an attribute of the same name exists. 
 | 
void | 
setDnAttributeName(String name)
Sets the DN attribute name. 
 | 
String | 
toString()  | 
handle, handleAttribute, handleAttributeName, handleAttributeValue, handleAttributeValue, handleDn, initializeRequestprivate static final int HASH_CODE_SEED
private String dnAttributeName
private boolean addIfExists
public String getDnAttributeName()
public void setDnAttributeName(String name)
name - of the DN attributepublic boolean isAddIfExists()
public void setAddIfExists(boolean b)
b - whether to add the entryDN if an attribute of the same name existsprotected void handleAttributes(Connection conn, SearchRequest request, SearchEntry entry) throws LdapException
AbstractSearchEntryHandlerhandleAttributes in class AbstractSearchEntryHandlerconn - the search was performed onrequest - used to find the search entryentry - search entry to extract the attributes fromLdapException - if the LDAP returns an errorpublic boolean equals(Object o)
equals in class AbstractSearchEntryHandlerpublic int hashCode()
hashCode in class AbstractSearchEntryHandlerCopyright © 2003-2019 Virginia Tech. All Rights Reserved.