public final class LookupResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<Name> |
aliases
In the case of CNAME or DNAME indirection, this property contains the original name as well as
any intermediate redirect targets except the last one.
|
private boolean |
isAuthenticated
Gets an indication if the message(s) that provided this result were authenticated, e.g.
|
private java.util.Map<Record,Message> |
queryResponsePairs
The queries and responses that made up the result.
|
private java.util.List<Record> |
records
An unmodifiable list of records that this instance wraps, may not be null but can be empty
|
Constructor and Description |
---|
LookupResult(boolean isAuthenticated) |
LookupResult(java.util.List<Record> records,
java.util.List<Name> aliases)
Deprecated.
This class is not intended for public instantiation.
|
LookupResult(LookupResult previous,
Record query,
Message answer,
boolean isAuthenticated,
java.util.List<Record> records,
java.util.List<Name> aliases) |
LookupResult(Record query,
boolean isAuthenticated,
Record record) |
private final java.util.List<Record> records
private final java.util.List<Name> aliases
private final java.util.Map<Record,Message> queryResponsePairs
private final boolean isAuthenticated
ValidatingResolver
or when the upstream resolver has set the
Flags.AD
flag.
IMPORTANT: Note that in the latter case, the flag cannot be trusted unless the Resolver
used by the LookupSession
that created this result:
@Deprecated public LookupResult(java.util.List<Record> records, java.util.List<Name> aliases)
records
- a list of records to return.aliases
- a list of aliases discovered during lookup, or null if there was no indirection.LookupResult(boolean isAuthenticated)
LookupResult(LookupResult previous, Record query, Message answer, boolean isAuthenticated, java.util.List<Record> records, java.util.List<Name> aliases)