Package edu.vt.middleware.ldap.handler
Class FqdnSearchResultHandler
- java.lang.Object
-
- edu.vt.middleware.ldap.handler.AbstractResultHandler<T,T>
-
- edu.vt.middleware.ldap.handler.CopyResultHandler<javax.naming.directory.SearchResult>
-
- edu.vt.middleware.ldap.handler.CopySearchResultHandler
-
- edu.vt.middleware.ldap.handler.FqdnSearchResultHandler
-
- All Implemented Interfaces:
ResultHandler<javax.naming.directory.SearchResult,javax.naming.directory.SearchResult>
,SearchResultHandler
public class FqdnSearchResultHandler extends CopySearchResultHandler
FqdnSearchResultHandler
ensures that the DN of a search result is fully qualified. Any non-relative names will have the URL removed ifgetRemoveUrls()
is true.- Version:
- $Revision: 2023 $ $Date: 2011-07-11 16:50:38 +0200 (Mon, 11 Jul 2011) $
- Author:
- Middleware Services
-
-
Field Summary
-
Fields inherited from class edu.vt.middleware.ldap.handler.AbstractResultHandler
logger
-
-
Constructor Summary
Constructors Constructor Description FqdnSearchResultHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getRemoveUrls()
Returns whether the URL will be removed from any DNs which are not relative.protected java.lang.String
processDn(SearchCriteria sc, javax.naming.directory.SearchResult sr)
Process the dn of an ldap search result.void
setRemoveUrls(boolean b)
Sets whether the URL will be removed from any DNs which are not relative The default value is true.-
Methods inherited from class edu.vt.middleware.ldap.handler.CopySearchResultHandler
getAttributeHandler, processAttributes, processResult, setAttributeHandler
-
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
-
-
-
-
Method Detail
-
getRemoveUrls
public boolean getRemoveUrls()
Returns whether the URL will be removed from any DNs which are not relative. The default value is true.- Returns:
boolean
-
setRemoveUrls
public void setRemoveUrls(boolean b)
Sets whether the URL will be removed from any DNs which are not relative The default value is true.- Parameters:
b
-boolean
-
processDn
protected java.lang.String processDn(SearchCriteria sc, javax.naming.directory.SearchResult sr)
Process the dn of an ldap search result.- Overrides:
processDn
in classCopySearchResultHandler
- Parameters:
sc
-SearchCriteria
used to find search resultsr
-SearchResult
to extract the dn from- Returns:
String
processed dn
-
-