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 java.lang.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.

Version:
$Rev: 583592 $, $Date: 2007-10-10 21:49:37 +0200 (Wed, 10 Oct 2007) $
Author:
Apache Directory Project

Constructor Summary
JndiRecordStoreImpl(java.lang.String catalogBaseDn, java.lang.String searchBaseDn, DirectoryService directoryService)
          Creates a new instance of JndiRecordStoreImpl.
 
Method Summary
 java.util.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(java.lang.String catalogBaseDn,
                           java.lang.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 java.util.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 Apache Software Foundation. All Rights Reserved.