edu.vt.middleware.ldap.handler.CopyResultHandler Maven / Gradle / Ivy
/*
$Id: CopyResultHandler.java 1330 2010-05-23 22:10:53Z dfisher $
Copyright (C) 2003-2010 Virginia Tech.
All rights reserved.
SEE LICENSE FOR MORE INFORMATION
Author: Middleware Services
Email: [email protected]
Version: $Revision: 1330 $
Updated: $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
*/
package edu.vt.middleware.ldap.handler;
import javax.naming.NamingException;
/**
* CopyResultHandler
converts a NamingEnumeration into a List of
* ldap results.
*
* @param type of result
*
* @author Middleware Services
* @version $Revision: 1330 $ $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
*/
public class CopyResultHandler extends AbstractResultHandler
{
/**
* Returns the supplied result unaltered.
*
* @param sc SearchCriteria
used to retrieve the result
* @param r T
to process
*
* @return T
result that was supplied
*
* @throws NamingException if the supplied result cannot be read
*/
protected T processResult(final SearchCriteria sc, final T r)
throws NamingException
{
return r;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy