spring-ldap-test

org.springframework.ldap.test
Class AttributeCheckContextMapper

java.lang.Object
  extended by org.springframework.ldap.test.AttributeCheckContextMapper
All Implemented Interfaces:
org.springframework.ldap.core.ContextMapper<org.springframework.ldap.core.DirContextAdapter>

public class AttributeCheckContextMapper
extends Object
implements org.springframework.ldap.core.ContextMapper<org.springframework.ldap.core.DirContextAdapter>

Dummy ContextMapper for testing purposes to check that the received Attributes are the expected ones.

Author:
Mattias Hellborg Arthursson

Constructor Summary
AttributeCheckContextMapper()
           
 
Method Summary
 org.springframework.ldap.core.DirContextAdapter mapFromContext(Object ctx)
           
 void setAbsentAttributes(String[] absentAttributes)
           
 void setExpectedAttributes(String[] expectedAttributes)
           
 void setExpectedValues(String[] expectedValues)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeCheckContextMapper

public AttributeCheckContextMapper()
Method Detail

mapFromContext

public org.springframework.ldap.core.DirContextAdapter mapFromContext(Object ctx)
Specified by:
mapFromContext in interface org.springframework.ldap.core.ContextMapper<org.springframework.ldap.core.DirContextAdapter>

setAbsentAttributes

public void setAbsentAttributes(String[] absentAttributes)

setExpectedAttributes

public void setExpectedAttributes(String[] expectedAttributes)

setExpectedValues

public void setExpectedValues(String[] expectedValues)

spring-ldap-test