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 Object
-
-
Field Summary
Fields Modifier and Type Field Description protected DnsMessage
answer
protected Question
question
protected DnsQueryResult
result
protected Set<DnssecUnverifiedReason>
unverifiedReasons
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<D>
getAnswers()
Set<D>
getAnswersOrEmptySet()
DnsQueryResult
getDnsQueryResult()
DnssecResultNotAuthenticException
getDnssecResultNotAuthenticException()
Question
getQuestion()
DnsMessage
getRawAnswer()
Get the raw answer DNS message we received.ResolutionUnsuccessfulException
getResolutionUnsuccessfulException()
DnsMessage.RESPONSE_CODE
getResponseCode()
Set<DnssecUnverifiedReason>
getUnverifiedReasons()
Get the reasons the result could not be verified if any exists.boolean
isAuthenticData()
void
throwIfErrorResponse()
protected void
throwIseIfErrorResponse()
String
toString()
boolean
wasSuccessful()
-
-
-
Field Detail
-
unverifiedReasons
protected final Set<DnssecUnverifiedReason> unverifiedReasons
-
answer
protected final DnsMessage answer
-
result
protected final DnsQueryResult result
-
-
Method Detail
-
wasSuccessful
public boolean wasSuccessful()
-
getAnswers
public Set<D> getAnswers()
-
getAnswersOrEmptySet
public Set<D> getAnswersOrEmptySet()
-
getResponseCode
public DnsMessage.RESPONSE_CODE getResponseCode()
-
isAuthenticData
public boolean isAuthenticData()
-
getUnverifiedReasons
public 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()
-
throwIseIfErrorResponse
protected void throwIseIfErrorResponse()
-
-