Package org.minidns.hla
Class ResolverResult<D extends Data>
- java.lang.Object
 - 
- org.minidns.hla.ResolverResult<D>
 
 
- 
- Direct Known Subclasses:
 SrvResolverResult
public class ResolverResult<D extends Data> extends java.lang.Object
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected DnsMessageanswerprotected Questionquestionprotected DnsQueryResultresultprotected java.util.Set<DnssecUnverifiedReason>unverifiedReasons 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<D>getAnswers()java.util.Set<D>getAnswersOrEmptySet()DnsQueryResultgetDnsQueryResult()DnssecResultNotAuthenticExceptiongetDnssecResultNotAuthenticException()QuestiongetQuestion()DnsMessagegetRawAnswer()Get the raw answer DNS message we received.ResolutionUnsuccessfulExceptiongetResolutionUnsuccessfulException()DnsMessage.RESPONSE_CODEgetResponseCode()java.util.Set<DnssecUnverifiedReason>getUnverifiedReasons()Get the reasons the result could not be verified if any exists.booleanisAuthenticData()voidthrowIfErrorResponse()protected voidthrowIseIfErrorResponse()java.lang.StringtoString()booleanwasSuccessful() 
 - 
 
- 
- 
Field Detail
- 
unverifiedReasons
protected final java.util.Set<DnssecUnverifiedReason> unverifiedReasons
 
- 
answer
protected final DnsMessage answer
 
- 
result
protected final DnsQueryResult result
 
 - 
 
- 
Method Detail
- 
wasSuccessful
public boolean wasSuccessful()
 
- 
getAnswers
public java.util.Set<D> getAnswers()
 
- 
getAnswersOrEmptySet
public java.util.Set<D> getAnswersOrEmptySet()
 
- 
getResponseCode
public DnsMessage.RESPONSE_CODE getResponseCode()
 
- 
isAuthenticData
public boolean isAuthenticData()
 
- 
getUnverifiedReasons
public java.util.Set<DnssecUnverifiedReason> getUnverifiedReasons()
Get the reasons the result could not be verified if any exists.- Returns:
 - The reasons the result could not be verified or 
null. 
 
- 
getQuestion
public Question getQuestion()
 
- 
throwIfErrorResponse
public void throwIfErrorResponse() throws ResolutionUnsuccessfulException
- Throws:
 ResolutionUnsuccessfulException
 
- 
getResolutionUnsuccessfulException
public ResolutionUnsuccessfulException getResolutionUnsuccessfulException()
 
- 
getDnssecResultNotAuthenticException
public DnssecResultNotAuthenticException getDnssecResultNotAuthenticException()
 
- 
getRawAnswer
public DnsMessage getRawAnswer()
Get the raw answer DNS message we received. This is likely not what you want, trygetAnswers()instead.- Returns:
 - the raw answer DNS Message.
 - See Also:
 getAnswers()
 
- 
getDnsQueryResult
public DnsQueryResult getDnsQueryResult()
 
- 
toString
public final java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
throwIseIfErrorResponse
protected void throwIseIfErrorResponse()
 
 - 
 
 -