org.apache.directory.server.dns.store.jndi
Class JndiRecordStoreImpl
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JndiRecordStoreImpl
public JndiRecordStoreImpl(String catalogBaseDn,
String searchBaseDn,
DirectoryService directoryService)
- Creates a new instance of JndiRecordStoreImpl.
- Parameters:
catalogBaseDn - base of catalog of searchDnssearchBaseDn - single search base for when there is no catalogdirectoryService - DirectoryService backend for the searches.
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.