org.apache.directory.server.dns.store.jndi
Class JndiRecordStoreImpl

java.lang.Object
  extended by org.apache.directory.server.dns.store.jndi.JndiRecordStoreImpl
All Implemented Interfaces:
RecordStore

public class JndiRecordStoreImpl
extends Object
implements RecordStore

A DirectoryService-backed implementation of the RecordStore interface. This RecordStore uses the Strategy pattern to either serve records based on a single base Dn or to lookup catalog mappings from directory configuration.

Author:
Apache Directory Project

Constructor Summary
JndiRecordStoreImpl(String catalogBaseDn, String searchBaseDn, DirectoryService directoryService)
          Creates a new instance of JndiRecordStoreImpl.
 
Method Summary
 Set<ResourceRecord> getRecords(QuestionRecord question)
          Returns a set of ResourceRecords, given a DNS QuestionRecord.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiRecordStoreImpl

public JndiRecordStoreImpl(String catalogBaseDn,
                           String searchBaseDn,
                           DirectoryService directoryService)
Creates a new instance of JndiRecordStoreImpl.

Parameters:
catalogBaseDn - base of catalog of searchDns
searchBaseDn - single search base for when there is no catalog
directoryService - DirectoryService backend for the searches.
Method Detail

getRecords

public Set<ResourceRecord> getRecords(QuestionRecord question)
                               throws DnsException
Description copied from interface: RecordStore
Returns a set of ResourceRecords, given a DNS QuestionRecord. If something bad happens throw the accurate DnsException

Specified by:
getRecords in interface RecordStore
Returns:
The set of ResourceRecords.
Throws:
DnsException


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.