public class JndiRecordStoreImpl extends java.lang.Object implements RecordStore
| Modifier and Type | Field and Description |
|---|---|
private SearchStrategy |
strategy
a handle on the searchh strategy
|
| Constructor and Description |
|---|
JndiRecordStoreImpl(java.lang.String catalogBaseDn,
java.lang.String searchBaseDn,
DirectoryService directoryService)
Creates a new instance of JndiRecordStoreImpl.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<ResourceRecord> |
getRecords(QuestionRecord question)
Returns a set of
ResourceRecords, given a DNS QuestionRecord. |
private SearchStrategy |
getSearchStrategy(java.lang.String catalogBaseDn,
java.lang.String searchBaseDn,
DirectoryService directoryService) |
private final SearchStrategy strategy
public JndiRecordStoreImpl(java.lang.String catalogBaseDn,
java.lang.String searchBaseDn,
DirectoryService directoryService)
catalogBaseDn - base of catalog of searchDnssearchBaseDn - single search base for when there is no catalogdirectoryService - DirectoryService backend for the searches.public java.util.Set<ResourceRecord> getRecords(QuestionRecord question) throws DnsException
RecordStoreResourceRecords, given a DNS QuestionRecord.
If something bad happens throw the accurate DnsExceptiongetRecords in interface RecordStoreResourceRecords.DnsExceptionprivate SearchStrategy getSearchStrategy(java.lang.String catalogBaseDn, java.lang.String searchBaseDn, DirectoryService directoryService)