public class ResolverResult<D extends Data> extends Object
Modifier and Type | Field and Description |
---|---|
protected DnsMessage |
answer |
protected Question |
question |
protected Set<UnverifiedReason> |
unverifiedReasons |
Modifier and Type | Method and Description |
---|---|
Set<D> |
getAnswers() |
Set<D> |
getAnswersOrEmptySet() |
DnssecResultNotAuthenticException |
getDnssecResultNotAuthenticException() |
Question |
getQuestion() |
DnsMessage |
getRawAnswer()
Get the raw answer DNS message we received.
|
ResolutionUnsuccessfulException |
getResolutionUnsuccessfulException() |
DnsMessage.RESPONSE_CODE |
getResponseCode() |
Set<UnverifiedReason> |
getUnverifiedReasons()
Get the reasons the result could not be verified if any exists.
|
boolean |
isAuthenticData() |
void |
throwIfErrorResponse() |
protected void |
throwIseIfErrorResponse() |
String |
toString() |
boolean |
wasSuccessful() |
protected final Set<UnverifiedReason> unverifiedReasons
protected final DnsMessage answer
public boolean wasSuccessful()
public Set<D> getAnswers()
public Set<D> getAnswersOrEmptySet()
public DnsMessage.RESPONSE_CODE getResponseCode()
public boolean isAuthenticData()
public Set<UnverifiedReason> getUnverifiedReasons()
null
.public Question getQuestion()
public void throwIfErrorResponse() throws ResolutionUnsuccessfulException
ResolutionUnsuccessfulException
public ResolutionUnsuccessfulException getResolutionUnsuccessfulException()
public DnssecResultNotAuthenticException getDnssecResultNotAuthenticException()
public DnsMessage getRawAnswer()
getAnswers()
instead.getAnswers()
protected void throwIseIfErrorResponse()