edu.vt.middleware.ldap.handler
Class FqdnSearchResultHandler
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.FqdnSearchResultHandler
- All Implemented Interfaces:
- ResultHandler<SearchResult,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 if
getRemoveUrls() is true.
- Version:
- $Revision: 2023 $ $Date: 2011-07-11 10:50:38 -0400 (Mon, 11 Jul 2011) $
- Author:
- Middleware Services
|
Method Summary |
boolean |
getRemoveUrls()
Returns whether the URL will be removed from any DNs which are not
relative. |
protected String |
processDn(SearchCriteria sc,
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FqdnSearchResultHandler
public FqdnSearchResultHandler()
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 String processDn(SearchCriteria sc,
SearchResult sr)
- Process the dn of an ldap search result.
- Overrides:
processDn in class CopySearchResultHandler
- Parameters:
sc - SearchCriteria used to find search resultsr - SearchResult to extract the dn from
- Returns:
String processed dn
Copyright © 2003-2010 Virginia Tech. All Rights Reserved.