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 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(java.util.List<Record> records,
java.util.List<Name> aliases)
Construct an instance with the provided records and, in the case of a CNAME or DNAME
indirection a List of aliases.
|
private final java.util.List<Record> records
private final java.util.List<Name> aliases
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.