Spring LDAP Framework

org.springframework.ldap.pool.validation
Interface DirContextValidator

All Known Implementing Classes:
DefaultDirContextValidator

public interface DirContextValidator

A validator for DirContexts.

Author:
Eric Dalquist

Method Summary
 boolean validateDirContext(DirContextType contextType, DirContext dirContext)
          Validates the DirContext.
 

Method Detail

validateDirContext

boolean validateDirContext(DirContextType contextType,
                           DirContext dirContext)
Validates the DirContext. A valid DirContext should be able to answer queries and if applicable write to the directory.

Parameters:
contextType - The type of the DirContext, refers to if ContextSource.getReadOnlyContext() or ContextSource.getReadWriteContext() was called to create the DirContext
dirContext - The DirContext to validate.
Returns:
true if the DirContext operated correctly during validation.

Spring LDAP Framework

Copyright © 2005-2010 The Spring LDAP Framework. All Rights Reserved.