edu.vt.middleware.ldap.handler
Class FqdnSearchResultHandler

java.lang.Object
  extended by edu.vt.middleware.ldap.handler.AbstractResultHandler<T,T>
      extended by edu.vt.middleware.ldap.handler.CopyResultHandler<SearchResult>
          extended by edu.vt.middleware.ldap.handler.CopySearchResultHandler
              extended by 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

Field Summary
 
Fields inherited from class edu.vt.middleware.ldap.handler.AbstractResultHandler
logger
 
Constructor Summary
FqdnSearchResultHandler()
           
 
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 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
 

Constructor Detail

FqdnSearchResultHandler

public FqdnSearchResultHandler()
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 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 result
sr - SearchResult to extract the dn from
Returns:
String processed dn


Copyright © 2003-2010 Virginia Tech. All Rights Reserved.